using System;
public class Program
{
public static void Main()
try{
Patient p = FinderObject.Find(PatientList, Name)
Doctor d = FinderObject.Find(DoctorList, Name)
foreach (var eachpatient in p)
Console.WriteLine(eachpatient);
}
foreach (var eachpDoctor in d)
Console.WriteLine(eachpDoctor);
catch(Exception ex)