TypedTableBaseExtensions.Select<TRow,S> 메서드

정의

TypedTableBase<T>의 각 요소를 새 폼에 프로젝션합니다.

public:
generic <typename TRow, typename S>
 where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
 static System::Data::EnumerableRowCollection<S> ^ Select(System::Data::TypedTableBase<TRow> ^ source, Func<TRow, S> ^ selector);
public static System.Data.EnumerableRowCollection<S> Select<TRow,S> (this System.Data.TypedTableBase<TRow> source, Func<TRow,S> selector) where TRow : System.Data.DataRow;
static member Select : System.Data.TypedTableBase<'Row (requires 'Row :> System.Data.DataRow)> * Func<'Row, 'S (requires 'Row :> System.Data.DataRow)> -> System.Data.EnumerableRowCollection<'S> (requires 'Row :> System.Data.DataRow)
<Extension()>
Public Function Select(Of TRow As DataRow, S As DataRow) (source As TypedTableBase(Of TRow), selector As Func(Of TRow, S)) As EnumerableRowCollection(Of S)

형식 매개 변수

TRow

source의 행 요소의 형식으로, DataRow입니다.

S

매개 변수

source
TypedTableBase<TRow>

변환 함수를 호출할 TypedTableBase<T> 요소가 들어 있는 DataRow입니다.

selector
Func<TRow,S>

각 요소에 적용할 변환 함수입니다.

반환

해당 요소가 source의 각 요소에 대해 변환 함수를 호출한 결과인 EnumerableRowCollection<TRow>입니다.

설명

이 프로젝션 메서드는 소스 시퀀스의 각 값에 대해 하나의 값을 생성하려면 변환 함수 selectorsource필요합니다. 컬렉션 자체의 값을 반환하는 경우 selector 소비자는 하위 시퀀스를 수동으로 트래버스해야 합니다.

적용 대상