예제 #1
0
    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);
    }
예제 #2
0
 public string HelloWithCustomerName(string customerName)
 {
     return(Greeter.GenericHelloWithCustomerName(customerName) + MyNameIs());
 }