using System.Collections.Generic;
public static void Main()
List<Employee> empList = new List<Employee>();
empList.Add(new Employee(){
empList.Add(new Employee(){
empList.Add(new Employee(){
Employee.PromoteEmployee(empList);
public int ID { get; set;}
public string Name {get;set;}
public int Salary {get;set;}
public int Experience {get;set;}
public static void PromoteEmployee(List<Employee> employeelist)
foreach(var employee in employeelist)
if(employee.Experience >= 5)
Console.WriteLine(employee.Name+" promoted");