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
ソース:
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
ソース:
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>

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

返品

並べ替えられたリスト。

適用対象

Sort(Comparison<T>)

ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs
ソース:
ImmutableList_1.cs
ソース:
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
ソース:
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>

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

返品

並べ替えられたリスト。

適用対象