Esempio n. 1
0
 public static int CountOfEmployee <T, R>(this MyCollection <T> employees)
 {
     return(employees.Count(x => x is R));
 }
Esempio n. 2
0
 public static IEnumerable <T> GetEpm <T, R>(this MyCollection <T> employees)
 {
     return(employees.Where(x => x is R));
 }