Пример #1
0
 public static int CountOfEmployee <T, R>(this MyCollection <T> employees)
 {
     return(employees.Count(x => x is R));
 }
Пример #2
0
 public static IEnumerable <T> GetEpm <T, R>(this MyCollection <T> employees)
 {
     return(employees.Where(x => x is R));
 }