public static void IsValuableCustomer(List<Customer> custList, IsValuableCustomer isValuable) { foreach (Customer c in custList) { if (isValuable(c)) { Console.WriteLine(c.Name + " is valuable customer."); } } }
public static void IsValuableCustomer(List <Customer> custList, IsValuableCustomer isValuable) { foreach (Customer c in custList) { if (isValuable(c)) { Console.WriteLine(c.Name + " is valuable customer."); } } }