Here is an example how to use delegate to use for custom searching thru generic list
List<employee> ListEmployes = new List<employee>();
string strFirstName = "Mark";
Employee employeeResult = objListSomeClass.Find(delegate(Employee employee )
{
return employee.Name==strFirstName ;
}
Tuesday, March 24, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment