ImmutableArray<T>.Sort メソッド

定義

オーバーロード

Sort()

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

Sort(IComparer<T>)

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

Sort(Comparison<T>)

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

Sort(Int32, Int32, IComparer<T>)

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

Sort()

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

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

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

指定した Comparison<T> を使用して、ImmutableArray<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

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

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 既定の比較子を使用する実装。

戻り値

配列内の項目を並べ替えた順で格納している新しい変更できない配列。

適用対象