Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void OlderThan(this List<Employee> emps,int age)
- {
- foreach (Employee e in emps)
- {
- if (e.Age > age)
- {
- Console.WriteLine(e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement