Here is a snippet that shows how to easily sort a class by a string property:
userList.Sort(
delegate(Customer customer1, Customer customer2)
{
return customer1.No.CompareTo(customer2.No);
});
2007-07-16
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment