String

What is an Overloaded Method?

by Dave on September 2, 2009

in Tutorials

Sometimes when programming, you might want to create a number of methods which internally have similar logic but accept different parameters. For example, an addition method called AddNumbers which, erm… adds numbers together, might accept two parameters of type int. But what if you want to add long values, or double values? You could create [...]

{ 0 comments }

Sometimes it can be useful to override a method, be it your own or maybe even one of .NET’s methods. In this example I am going to create a simple class and then show you how to override its ToString() method. In .NET, whenever you create a class, the ToString() method is automatically created for [...]

{ 0 comments }

As a developer I am sure you have come across the need to generate some random text – most likely for testing load or something similar. In this short article I am going to show you how you can generate random text and random sentences quite quickly. To start off I am going to create [...]

{ 4 comments }

In this article I’m going to show you how to create your very own class library – also know as a dll file. We’ll be building a class containing a static text hashing method, which we’ll then call from a separate application. After reading this article you will know exactly how to create a dll [...]

{ 3 comments }

A regular expression, or regex in short, is a string of text which represents a search pattern. They are usually used either to search through text and find strings which match the given pattern, or to validate a string against the search pattern. Regular expressions are extremely powerful but they can prove quite difficult to [...]

{ 0 comments }