ImmutableArray<T>.Sort メソッド

定義

オーバーロード

名前 説明
Sort()

既定の比較子を使用して、変更できない配列内の要素を並べ替えます。

Sort(IComparer<T>)

指定した比較子を使用して、変更できない配列内の要素を並べ替えます。

Sort(Comparison<T>)

指定したImmutableArray<T>を使用して、Comparison<T>全体の要素を並べ替えます。

Sort(Int32, Int32, IComparer<T>)

指定した比較子を使用して、変更できない配列内の指定された要素を並べ替えます。

Sort()

ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs

既定の比較子を使用して、変更できない配列内の要素を並べ替えます。

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

返品

並べ替えられた順序で、この配列内の項目を含む新しい変更できない配列。

適用対象

Sort(IComparer<T>)

ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs

指定した比較子を使用して、変更できない配列内の要素を並べ替えます。

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

パラメーター

comparer
IComparer<T>

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

返品

並べ替えられた順序で、この配列内の項目を含む新しい変更できない配列。

適用対象

Sort(Comparison<T>)

ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs

指定したImmutableArray<T>を使用して、Comparison<T>全体の要素を並べ替えます。

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

パラメーター

comparison
Comparison<T>

要素を比較するときに使用する Comparison<T>

返品

並べ替えられたリスト。

例外

comparison が null です。

適用対象

Sort(Int32, Int32, IComparer<T>)

ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs
ソース:
ImmutableArray_1.cs

指定した比較子を使用して、変更できない配列内の指定された要素を並べ替えます。

public:
 System::Collections::Immutable::ImmutableArray<T> Sort(int index, int count, System::Collections::Generic::IComparer<T> ^ comparer);
public System.Collections.Immutable.ImmutableArray<T> Sort(int index, int count, System.Collections.Generic.IComparer<T> comparer);
public System.Collections.Immutable.ImmutableArray<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.ImmutableArray<'T>
Public Function Sort (index As Integer, count As Integer, comparer As IComparer(Of T)) As ImmutableArray(Of T)

パラメーター

index
Int32

並べ替える最初の要素のインデックス。

count
Int32

並べ替えに含める要素の数。

comparer
IComparer<T>

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

返品

並べ替えられた順序で、この配列内の項目を含む新しい変更できない配列。

適用対象