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. // Note: Dont not use any default classes, only use either IEnumerable/IEnumerator. MyEnumerable myEnumerableObj = new MyEnumerable(); foreach (Person p in myEnumerableObj) Console.WriteLine ("Id is {0} , Name is {1} , Location is {2}", p.Id, p.Name, p.Location); }
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. // Note: Dont not use any default classes, only use either IEnumerable/IEnumerator. MyEnumerable myEnumerableObj = new MyEnumerable(); foreach (Person p in myEnumerableObj) { Console.WriteLine("Id is {0} , Name is {1} , Location is {2}", p.Id, p.Name, p.Location); } }