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]);
            });
        }