[Solved] How do I import data from a class C#


This code returns ordered names of all men in collection:

public static IEnumerable<string> OrderedMales(IEnumerable<Person> persons)
{
    return persons.Where(p => p.Sex == Gender.Male).OrderBy(p => p.Name).Select(p => p.Name);
}

0

solved How do I import data from a class C#