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 [...]
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 [...]
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 [...]
Most applications require the use of strings since it is one of the most important native data types in C#. Very often you would need to append two strings or maybe more together. There are two ways to do this in C# – either through string concatenation or by making use of the C# StringBuilder [...]