fit.Test.Double.SampleDomain.GetPeople C# (CSharp) Метод

GetPeople() публичный Метод

public GetPeople ( string names ) : IEnumerable
names string
Результат IEnumerable
        public IEnumerable<Person> GetPeople(string[] names)
        {
            return names.Select(n => {
                var split = n.Split('-');
                return new Person(split[0], split[1]);
            });
        }