In my previous post on Generics, I received a comment from Eddie, who was asking why developers would want to use the following constraint, in the example below, when he would pass the parameters as IComparable interface types. public static bool IsLessThan(T one, T two) where T:IComparable { return one.CompareTo(two) < 0; } public static [...]
Archive for May 27th, 2005
Question about generics
Posted in Everything, Software Development, tagged C#, Code on May 27, 2005 | Leave a Comment »
