Ejemplo n.º 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);
    }
Ejemplo n.º 2
0
 public string HelloWithCustomerName(string customerName)
 {
     return(Greeter.GenericHelloWithCustomerName(customerName) + MyNameIs());
 }