using System;
public class Test
{
public static void Main()
{
var Employee1 = new { ID = 5, Name = "Prashant" };
var Employee2 = new { ID = 1, Name = "Tim" };
var employees = new[] { Employee1, Employee2 };
foreach (var employee in employees)
{
Console.WriteLine("ID:{0}, Name:{1}", employee.ID, employee.Name);
}
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCXZhciBFbXBsb3llZTEgPSBuZXcgeyBJRCA9IDUsIE5hbWUgPSAiUHJhc2hhbnQiIH07CiAgICAgICAgdmFyIEVtcGxveWVlMiA9IG5ldyB7IElEID0gMSwgTmFtZSA9ICJUaW0iIH07CiAgICAgICAgdmFyIGVtcGxveWVlcyA9IG5ld1tdIHsgRW1wbG95ZWUxLCBFbXBsb3llZTIgfTsKICAgICAgICAKICAgICAgICBmb3JlYWNoICh2YXIgZW1wbG95ZWUgaW4gZW1wbG95ZWVzKQogICAgICAgIHsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIklEOnswfSwgTmFtZTp7MX0iLCBlbXBsb3llZS5JRCwgZW1wbG95ZWUuTmFtZSk7CiAgICAgICAgfQoJfQp9