public static void Main() { AB ab = new AB(); ab.AMethod(); ab.BMethod(); }
static void Main(string[] args) { SumOfNumbersCallback resCallback = new SumOfNumbersCallback(PrintSum); Number number = new Number(10, resCallback); //ParameterizedThreadStart paraThreadStart = new ParameterizedThreadStart(ComputeSum); Thread T1 = new Thread(number.ComputeSumOfNumber); T1.Start(); //List<Employee> empList = new List<Employee>(); //empList.Add(new Employee() { ID = 101, Name = "Mary", Salary = 5000, Experience = 5 }); //empList.Add(new Employee() { ID = 101, Name = "Mike", Salary = 4000, Experience = 4 }); //empList.Add(new Employee() { ID = 101, Name = "John", Salary = 6000, Experience = 6 }); //empList.Add(new Employee() { ID = 101, Name = "Todd", Salary = 3000, Experience = 3 }); ////IsPromotable isPromotable = new IsPromotable(Promote); //Employee.PromoteEmployee(empList, emp => emp.Experience >= 5); AB ab = new AB(); Random r = new Random(); Console.WriteLine(r); }