using System.Collections.Generic;
public static void Main()
var patients = new List<Patients>() {
new Patients(){ Id = 1, Name="Bill"},
new Patients(){ Id = 2, Name="Steve"},
new Patients(){ Id = 3, Name="Ram"},
new Patients(){ Id = 4, Name="Abdul"}
Console.WriteLine("No of elelemts: " + patients.Count);
var doctor = new List<Doctors>() {
new Doctors(){ Id = 1, Name="Ram"},
new Doctors(){ Id = 2, Name="Sachin"},
new Doctors(){ Id = 3, Name="Dhoni"},
new Doctors(){ Id = 4, Name="Kholi"}
Console.WriteLine("No of elelemts: " + doctor.Count);