C# .NET - Sortedset with object
Asked By mostafa hamdy on 06-Jan-11 11:11 AM
I'm new for .net framework 4.0 and I found some new generic type which is Sortedset<T> type, I just have one question which is , is it allowed for SortedSet to take user defined objects like employees , customers and vendors ...etc
please if any body get what I mean and can help me please send me or tell me about some URL may help me in doing that ,
Peter Bromberg replied to mostafa hamdy on 06-Jan-11 11:54 AM
SortedSet<T> accepts any type "T". The "T" in the generic <T> identifier is your clue that this is a generic collection type.
So for example,
SortedSet<Employee> sortedEmployees = new SortedSet<Employee>();