using System.Collections.Generic;
public static void Main()
var listOfEmployees = new List<Employee> {
new Employee { EmployeeName = "Sam", Age = 20, Address = new Address { City = "Bangalore", Country = "India"}},
new Employee { EmployeeName = "John", Age = 20, Address = new Address { City = "Texas", Country = "USA"}},
new Employee { EmployeeName = "Alisa", Age = 20, Address = new Address { City = "Dubai", Country = "UAE"}},
new Employee { EmployeeName = "Praveen", Age = 20, Address = new Address { City = "Singapore", Country = "Singapore"}}
public string EmployeeName {get; set;}
public int Age {get; set;}
public Address Address {get; set;}
public string City {get; set;}
public string Country {get; set;}