TypedTableBaseExtensions.OrderBy メソッド

定義

TypedTableBase<T> の行を昇順に並べ替えます。

オーバーロード

OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>)

TypedTableBase<T> の行を指定したキーに従って昇順に並べ替えます。

OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>)

TypedTableBase<T> の行を指定したキーと比較子に従って昇順に並べ替えます。

OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>)

ソース:
TypedTableBaseExtensions.cs
ソース:
TypedTableBaseExtensions.cs
ソース:
TypedTableBaseExtensions.cs

TypedTableBase<T> の行を指定したキーに従って昇順に並べ替えます。

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

型パラメーター

TRow

source の行要素の型。通常は、DataRow

TKey

keySelector によって返されるキーの型。

パラメーター

source
TypedTableBase<TRow>

順序付けする TypedTableBase<T> 要素が格納されている DataRow

keySelector
Func<TRow,TKey>

要素からキーを抽出する関数。

戻り値

要素が指定したキーで並べ替えられている OrderedEnumerableRowCollection<TRow>

適用対象

OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>)

ソース:
TypedTableBaseExtensions.cs
ソース:
TypedTableBaseExtensions.cs
ソース:
TypedTableBaseExtensions.cs

TypedTableBase<T> の行を指定したキーと比較子に従って昇順に並べ替えます。

public:
generic <typename TRow, typename TKey>
 where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
 static System::Data::OrderedEnumerableRowCollection<TRow> ^ OrderBy(System::Data::TypedTableBase<TRow> ^ source, Func<TRow, TKey> ^ keySelector, System::Collections::Generic::IComparer<TKey> ^ comparer);
public static System.Data.OrderedEnumerableRowCollection<TRow> OrderBy<TRow,TKey> (this System.Data.TypedTableBase<TRow> source, Func<TRow,TKey> keySelector, System.Collections.Generic.IComparer<TKey> comparer) where TRow : System.Data.DataRow;
static member OrderBy : System.Data.TypedTableBase<'Row (requires 'Row :> System.Data.DataRow)> * Func<'Row, 'Key (requires 'Row :> System.Data.DataRow)> * System.Collections.Generic.IComparer<'Key> -> System.Data.OrderedEnumerableRowCollection<'Row (requires 'Row :> System.Data.DataRow)> (requires 'Row :> System.Data.DataRow)
<Extension()>
Public Function OrderBy(Of TRow As DataRow, TKey As DataRow) (source As TypedTableBase(Of TRow), keySelector As Func(Of TRow, TKey), comparer As IComparer(Of TKey)) As OrderedEnumerableRowCollection(Of TRow)

型パラメーター

TRow

source の行要素の型。通常は、DataRow

TKey

keySelector によって返されるキーの型。

パラメーター

source
TypedTableBase<TRow>

順序付けする TypedTableBase<T> 要素が格納されている DataRow

keySelector
Func<TRow,TKey>

要素からキーを抽出する関数。

comparer
IComparer<TKey>

キーを比較する IComparer<T>

戻り値

要素が指定したキーと比較子で並べ替えられている OrderedEnumerableRowCollection<TRow>

適用対象