Exemplo n.º 1
0
        static void ListMembersCovariant(StudentGroup members)
        {
            Console.WriteLine($"* COVARIANT RETURN APPROACH");
            Console.WriteLine($"* {members.Description} members");

            foreach (var member in members.ListMembersCovariant())
            {
                Console.WriteLine($"{member.StudentID} - {member.Name}");
            }

            Console.WriteLine("");
        }