public static List <Student> FindStudent(this List <Student> list, StudentPredicateDelegate spd) { List <Student> reqList = new List <Student>(); foreach (Student st in list) { if (spd.Invoke(st)) { reqList.Add(st); } } return(reqList); }
public static List <Student> FindStudent(this List <Student> list, StudentPredicateDelegate studentPredicateDelegate) { List <Student> Result = new List <Student>(); foreach (Student student in list) { if (studentPredicateDelegate.Invoke(student)) { Result.Add(student); } } return(Result); }
public static List <Student> FindStudent(this List <Student> list, StudentPredicateDelegate delegats) { List <Student> List = new List <Student>(); foreach (Student i in list) { if (delegats.Invoke(i)) { List.Add(i); } } return(List); }
public static List <CharacteristicStudent> FindStudent(this List <CharacteristicStudent> students, StudentPredicateDelegate studentGroup) { List <CharacteristicStudent> studentsResult = new List <CharacteristicStudent>(); foreach (CharacteristicStudent student in students) { if (studentGroup.Invoke(student)) { studentsResult.Add(student); } } return(studentsResult); }
public static List <Student> Find_student(this List <Student> list, StudentPredicateDelegate something) { List <Student> Listik = new List <Student>(); foreach (Student el in list) { if (something.Invoke(el)) { Listik.Add(el); } } return(Listik); }
public static List <Student> FindStudent(this List <Student> students, StudentPredicateDelegate studentPredicateDelegate) { List <Student> temp = new List <Student>(); foreach (Student student in students) { if (studentPredicateDelegate.Invoke(student)) { temp.Add(student); } } return(temp); }
public static List <Student> FindStudent(this List <Student> students, StudentPredicateDelegate @delegate) { List <Student> result = new List <Student>(); foreach (Student st in students) { if (@delegate.Invoke(st)) { result.Add(st); } } return(result); }
public static List <Student> FindStudent(this List <Student> InStudents, StudentPredicateDelegate Pred) { if (InStudents.Count > 0) { List <Student> OutStudents = new List <Student>(); for (int i = 0; i < InStudents.Count; ++i) { if (Pred != null && Pred.Invoke(InStudents[i])) { OutStudents.Add(InStudents[i]); } } return(OutStudents); } return(null); }