예제 #1
0
        private static void ListAllPatients()
        {
            Console.WriteLine("#### Listing all the patients ####");
            List <Patient> patients = clinic.GetPatients();
            int            index    = 1;

            patients.ForEach((Patient obj) => {
                Console.WriteLine(index + " - " + obj.Name);
                index++;
            });
        }