public static string GenericHelloWithCustomerNameAndSuffixes( string customerName, IEnumerable <string> suffixes = null) { string fullName = Greeter.GenericHelloWithCustomerName(customerName); if (suffixes != null) { foreach (var suffix in suffixes) { fullName += " " + suffix; } } return(fullName); }
public string HelloWithCustomerName(string customerName) { return(Greeter.GenericHelloWithCustomerName(customerName) + MyNameIs()); }