Generics - Basic
Generics Definition Generics are the most powerful feature of C# 2.0. Generics allow you to define type-safe data structures, without committing to actual data types. This results in a significant performance boost and higher quality code, because you get to reuse data processing algorithms without duplicating type-specific code. [ MSDN ] Code Compare.cs public class Compare<DONTKNOWYET> { public bool CompareData(DONTKNOWYET d1, DONTKNOWYET d2 ) { if(d1.Equals(d2)) { return true; } return false; } } Program.cs class Program { static void Main(string[] args) { ...