다음 수업이 있다고 가정 해보십시오.
public class ConfigItemType
{
public string Name { get; set; }
public double SomeOtherThing { get; set; }
}
그런 다음 다음 클래스 목록을 만듭니다 ( List<ConfigItemType> MyList)
이제 다음과 같은 서명이있는 방법이 있습니다.
void AggregateValues(string someUnrelatedValue, params string[] listGoesHere)
어떻게 들어갈 수있는 MyList받는 사람에서 listGoesHere의 값을 사용하여 ConfigItemType.Nameparams 객체를 파라미터로 문자열 배열로?
Linq가 이것을 할 수 있다고 확신합니다 ....하지만 그것에 MyList대한 select방법 이 없습니다 (이것은 내가 사용했을 것입니다).