reference: http://www.codeproject.com/KB/cs/DelegatesOMy.aspx
Example:
List<Employee> employeeList = GetEmployeeListSomeWhere();
employeeList.Sort((x,y)=>Compare<string>.Default.Compare(x.Name, y.Name));
reference: http://www.codeproject.com/KB/cs/DelegatesOMy.aspx
Example:
List<Employee> employeeList = GetEmployeeListSomeWhere();
employeeList.Sort((x,y)=>Compare<string>.Default.Compare(x.Name, y.Name));