Tag Archives: Generics

Generic Collections in C#: List, Dictionary, Stack and Queue

The System.Collections.Generic namespace contains interfaces and classes that define generic collections, which allow users to create strongly typed collections that provide better type safety and performance than non-generic strongly typed collections. Dictionary<TKey, TValue> Represents a collection of keys and values. … Continue reading

Posted in CSharp, Generics, Visual Studio 2012 | Tagged , , , , , , , | Leave a comment


Boxing and Unboxing Boxing slows down performance and consumes more memory (more than twice the memory of the original value type). Boxing can be avoided by using parameterized classes and methods, using generics; in fact this was the motivation for … Continue reading

Posted in Generics | Tagged , , | Leave a comment