ToString() Method Overriding in C# with Example

In dotnet, every type directly or directly inherit from Object class.  Object class contains some methods like ToString(), GetHashCode(), Equals(), etc and all of these methods are available to all the derived classes.  As the name suggests, ToString() works fine with the built in types but in case of complex types, it does not work

What are Generics in C# with Example

In general, when we want to create a collection of items, we make use of arrays due to their strongly typed nature.  The only drawback which we experience is that they cannot grow in size.  Their size depend upon their initialization. Due to this reason, in dotnet v1.0, collections were introduced like ArrayList, Stack, Queue,

Reflection in C# with Example

In this C# reflection tutorial, you will learn what is reflection in C# and how to use it.  In dotnet, whenever you compile an application, an assembly is generated.  That assembly could be an executable file or a dll file.  As we know, all dotnet applications contains MSIL or CIL code which is converted to

LINQ Aggregate Methods in C#

LINQ Aggregate methods help in various common calculations like getting average, count, sum etc of values in a collection.  In C#, we have 6 LINQ Aggregate methods. Min():  LINQ Aggregate Min method will give us lowest value in a collection. Max():  LINQ Aggregate Max method will give us highest value in a collection. Average():  LINQ