Example #1
0
 public static void Main(string[] args)
 {
     //			Implement double LinkedList for a Person class (which contains Id, Name , Location properties)
     //				and use enumerator to iterate through each item and print the values on console.
     MyEnum myEnumObj = new MyEnum();
     foreach (Person p in myEnumObj)
         Console.WriteLine ("Id is {0} , Name is {1} , Location is {2}", p.Id, p.Name, p.Location);
 }