ImmutableList<T>.Sort メソッド

定義

オーバーロード

Sort()

既定の比較子を使用して、変更できないリスト全体の要素を並べ替えます。

Sort(IComparer<T>)

指定した比較子を使用して、変更できないリスト全体の要素を並べ替えます。

Sort(Comparison<T>)

指定した比較子を使用して、変更できないリスト全体の要素を並べ替えます。

Sort(Int32, Int32, IComparer<T>)

指定した比較子を使用して、変更できないリスト全体のある範囲の要素を並べ替えます。

Sort()

ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs

既定の比較子を使用して、変更できないリスト全体の要素を並べ替えます。

public:
 System::Collections::Immutable::ImmutableList<T> ^ Sort();
public System.Collections.Immutable.ImmutableList<T> Sort ();
member this.Sort : unit -> System.Collections.Immutable.ImmutableList<'T>
Public Function Sort () As ImmutableList(Of T)

戻り値

並べ替えられたリスト。

適用対象

Sort(IComparer<T>)

ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs

指定した比較子を使用して、変更できないリスト全体の要素を並べ替えます。

public:
 System::Collections::Immutable::ImmutableList<T> ^ Sort(System::Collections::Generic::IComparer<T> ^ comparer);
public System.Collections.Immutable.ImmutableList<T> Sort (System.Collections.Generic.IComparer<T> comparer);
public System.Collections.Immutable.ImmutableList<T> Sort (System.Collections.Generic.IComparer<T>? comparer);
member this.Sort : System.Collections.Generic.IComparer<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function Sort (comparer As IComparer(Of T)) As ImmutableList(Of T)

パラメーター

comparer
IComparer<T>

要素を比較する場合に使用する実装。または、既定の比較子 (Default) を使用する場合は null

戻り値

並べ替えられたリスト。

適用対象

Sort(Comparison<T>)

ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs

指定した比較子を使用して、変更できないリスト全体の要素を並べ替えます。

public:
 System::Collections::Immutable::ImmutableList<T> ^ Sort(Comparison<T> ^ comparison);
public System.Collections.Immutable.ImmutableList<T> Sort (Comparison<T> comparison);
member this.Sort : Comparison<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function Sort (comparison As Comparison(Of T)) As ImmutableList(Of T)

パラメーター

comparison
Comparison<T>

要素を比較する場合に使用するデリゲート。

戻り値

並べ替えられたリスト。

例外

comparisonnull です。

適用対象

Sort(Int32, Int32, IComparer<T>)

ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs

指定した比較子を使用して、変更できないリスト全体のある範囲の要素を並べ替えます。

public:
 System::Collections::Immutable::ImmutableList<T> ^ Sort(int index, int count, System::Collections::Generic::IComparer<T> ^ comparer);
public System.Collections.Immutable.ImmutableList<T> Sort (int index, int count, System.Collections.Generic.IComparer<T> comparer);
public System.Collections.Immutable.ImmutableList<T> Sort (int index, int count, System.Collections.Generic.IComparer<T>? comparer);
member this.Sort : int * int * System.Collections.Generic.IComparer<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function Sort (index As Integer, count As Integer, comparer As IComparer(Of T)) As ImmutableList(Of T)

パラメーター

index
Int32

並べ替える範囲の開始位置を示す 0 から始まるインデックス。

count
Int32

並べ替える範囲の長さ。

comparer
IComparer<T>

要素を比較する場合に使用する実装。または、既定の比較子 (Default) を使用する場合は null

戻り値

並べ替えられたリスト。

適用対象