Generics in C#

What are Generics in C# ?

According to MSDN, “Generics introduce to the .NET Framework the concept of type parameters, which make it possible to design classes and methods that defer the specification of one or more types until the class or method is declared and instantiated by client code.”   By using Generics, classes and methods can work uniformly on …

What are Generics in C# ? Read More »

Csharp Generics Collection Interfaces

Collection Interfaces   The .NET Framework provides two sets of standard interfaces for enumerating and comparing collections: the traditional (nontype-safe) and the new generic type-safe collections. Here we focuses only on the new, type-safe collection interfaces as these are far preferable.   You can declare an ICollection of any specific type by substituting the actual …

Csharp Generics Collection Interfaces Read More »

Scroll to Top