ImmutableArrayExtensions.SelectMany<TSource,TCollection,TResult>(ImmutableArray<TSource>, Func<TSource,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) 메서드

정의

시퀀스의 각 요소를 IEnumerable<T>로 투영하고, 결과 시퀀스를 단일 시퀀스로 평면화한 다음 포함된 각 요소에 대해 결과 선택기 함수를 호출합니다.Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.

public:
generic <typename TSource, typename TCollection, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<TResult> ^ SelectMany(System::Collections::Immutable::ImmutableArray<TSource> immutableArray, Func<TSource, System::Collections::Generic::IEnumerable<TCollection> ^> ^ collectionSelector, Func<TSource, TCollection, TResult> ^ resultSelector);
public static System.Collections.Generic.IEnumerable<TResult> SelectMany<TSource,TCollection,TResult> (this System.Collections.Immutable.ImmutableArray<TSource> immutableArray, Func<TSource,System.Collections.Generic.IEnumerable<TCollection>> collectionSelector, Func<TSource,TCollection,TResult> resultSelector);
static member SelectMany : System.Collections.Immutable.ImmutableArray<'Source> * Func<'Source, seq<'Collection>> * Func<'Source, 'Collection, 'Result> -> seq<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TCollection, TResult) (immutableArray As ImmutableArray(Of TSource), collectionSelector As Func(Of TSource, IEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, TResult)) As IEnumerable(Of TResult)

형식 매개 변수

TSource

immutableArray 요소의 형식입니다.The type of the elements of immutableArray.

TCollection

collectionSelector에서 수집하는 중간 요소의 형식입니다.The type of the intermediate elements collected by collectionSelector.

TResult

결과 시퀀스 요소의 형식입니다.The type of the elements of the resulting sequence.

매개 변수

immutableArray
ImmutableArray<TSource>

변경할 수 없는 배열입니다.The immutable array.

collectionSelector
Func<TSource,IEnumerable<TCollection>>

입력 시퀀스의 각 요소에 적용할 변형 함수입니다.A transform function to apply to each element of the input sequence.

resultSelector
Func<TSource,TCollection,TResult>

중간 시퀀스의 각 요소에 적용할 변형 함수입니다.A transform function to apply to each element of the intermediate sequence.

반환

IEnumerable<TResult>

해당 요소가 IEnumerable<T>의 각 요소에 대해 일대다 변형 함수 collectionSelector를 호출한 다음 이러한 시퀀스 요소와 해당 소스 요소를 각각 결과 요소에 매핑한 결과인 immutableArray입니다.An IEnumerable<T> whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of immutableArray and then mapping each of those sequence elements and their corresponding source element to a result element.

적용 대상