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