Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
        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);
        }