Beyond_Beyaan.NameGenerator.GetName C# (CSharp) Метод

GetName() публичный статический Метод

public static GetName ( ) : string
Результат string
        public static string GetName()
        {
            StringBuilder sb = new StringBuilder();
            StringGetter[] Getters = Generator[rnd.Next(Generator.Count - 1)];

            bool first = true;
            foreach (StringGetter g in Getters)
            {
                string s = g();

                if (first)
                {
                    s = string.Format("{0}{1}", Char.ToUpper(s[0]), s.Substring(1));
                    first = false;
                }

                sb.Append(s);

                if (s == " ")
                    first = true;
            }

            return sb.ToString();
        }