static void Main(string[] args) { MedicalCard m1 = new MedicalCard { Heart = "fine", Kidneys = "fine", Liver = "fine" }; foreach (string i in m1) { Console.WriteLine(i); } Console.ReadKey(); }
public Enumerator(MedicalCard obj) { my_card = obj; }