using System.Collections.Generic;
delegate bool delegateName(student std);
public string Name {get;set;}
public int marks {get;set;}
public static void MethodName(List<student> stuList, delegateName stud)
foreach(student s in stuList)
Console.WriteLine(s.Name + "pass");
public static void Main()
List<student> students = new List<student>();
students.Add(new student(){ID = 101,Name ="aaa",marks = 400});
delegateName dn = new delegateName(Method);
student.MethodName(students,dn);
public static bool Method(students s)