C # : 개체 목록을 해당 개체의 단일 속성 목록으로 변환하는 방법은 무엇입니까? 내가 가지고 있다고 : IList people = new List(); 그리고 person 개체에는 FirstName, LastName 및 Gender와 같은 속성이 있습니다. 이것을 Person 객체의 속성 목록으로 어떻게 변환 할 수 있습니까? 예를 들어, 이름 목록에. IList firstNames = ??? List firstNames = people.Select(person => person.FirstName).ToList(); 그리고 정렬 List orderedNames = people.Select(person => person.FirstName).OrderBy(name => name).ToList(); ILi..