コード例 #1
0
        public void DisplayEmployees()
        {
            var list = _company.GetEmployees();

            foreach (var item in list)
            {
                Console.WriteLine(item);
            }
        }
コード例 #2
0
ファイル: Example2.cs プロジェクト: vineett313/Project
 public static Employee GetEmployeeById(this ICompany list, int id)
 {
     return(list.GetEmployees().Where(x => x.Id == id).First());
 }