using System.Collections.Generic;
public static void Main()
Customr customer1 = new Customr()
Customr customer2 = new Customr()
Customr customer3 = new Customr()
Customr customer4 = new Customr() {
List<Customr> customers = new List<Customr>(2);
customers.Add(customer1);
customers.Add(customer2);
customers.Add(customer3);
customers.Insert(0,customer4);
foreach(Customr c in customers) {
foreach(Customr c in customers) {
Console.WriteLine("ID is "+ c.ID +" name is "+ c.Name + " salary is " + c.Salary);
public int ID {get; set;}
public string Name {get; set;}
public int Salary {get; set;}