Generics allow us to create type safe collections with no boxing and un-boxing overhead. It is a concept that allows us to achieve parametric polymorphism. C# is a strongly typed language, i.e., objects in C# …
Read More »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 …
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 …
Read More »