Beispiel #1
0
 public static void printStudents(Student[] students)
 {
     foreach (var student in students)
     {
         Console.WriteLine(student);
     }
 }
Beispiel #2
0
 public static void GetStudents(Student[] students)
 {
     var newStudents =
        from student in students
        where student.FirstName.CompareTo(student.LastName) < 0
        select student;
     printStudents(newStudents.ToArray());
 }