private static void StudentsTask() { var students = new List <Student>(); var builder = new StudentBuilder(); while (true) { var student = builder .SetFullName() .SetPassedClasses() .SetCategory() .Build(); students.Add(student); var key = Console.ReadKey(true); if (key.Key == ConsoleKey.S) { break; } } foreach (var student in students) { Console.WriteLine(student); Console.WriteLine($"Is passed: {student.PassOffset()}"); } }