You can use a delegate to sort a generic list. Example
GenericList ObjectItem = new GenericList ObjectItem() GenericList.Sort(delegate(ObjectItem i1,ObjectItem i2) {
return i1.SortProperty.CompareTo(i2.SortProperty);
});
You can use a delegate to sort a generic list. Example
GenericList ObjectItem = new GenericList ObjectItem() GenericList.Sort(delegate(ObjectItem i1,ObjectItem i2) {
return i1.SortProperty.CompareTo(i2.SortProperty);
});