ImmutableArray<T>.Sort Metoda

Definicja

Przeciążenia

Sort()

Sortuje elementy w niezmiennej tablicy przy użyciu domyślnego modułu porównywania.

Sort(IComparer<T>)

Sortuje elementy w niezmiennej tablicy przy użyciu określonego porównania.

Sort(Comparison<T>)

Sortuje elementy w całości ImmutableArray<T> przy użyciu określonego Comparison<T>elementu .

Sort(Int32, Int32, IComparer<T>)

Sortuje określone elementy w niezmiennej tablicy przy użyciu określonego porównania.

Sort()

Źródło:
ImmutableArray_1.cs
Źródło:
ImmutableArray_1.cs
Źródło:
ImmutableArray_1.cs

Sortuje elementy w niezmiennej tablicy przy użyciu domyślnego modułu porównywania.

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)

Zwraca

Nowa niezmienna tablica zawierająca elementy w tej tablicy w kolejności posortowanej.

Dotyczy

Sort(IComparer<T>)

Źródło:
ImmutableArray_1.cs
Źródło:
ImmutableArray_1.cs
Źródło:
ImmutableArray_1.cs

Sortuje elementy w niezmiennej tablicy przy użyciu określonego porównania.

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)

Parametry

comparer
IComparer<T>

Implementacja do użycia podczas porównywania elementów lub null używania domyślnego modułu porównywarki.

Zwraca

Nowa niezmienna tablica zawierająca elementy w tej tablicy w kolejności posortowanej.

Dotyczy

Sort(Comparison<T>)

Źródło:
ImmutableArray_1.cs
Źródło:
ImmutableArray_1.cs
Źródło:
ImmutableArray_1.cs

Sortuje elementy w całości ImmutableArray<T> przy użyciu określonego Comparison<T>elementu .

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)

Parametry

comparison
Comparison<T>

Element Comparison<T> do użycia podczas porównywania elementów.

Zwraca

Posortowana lista.

Wyjątki

comparison ma wartość null.

Dotyczy

Sort(Int32, Int32, IComparer<T>)

Źródło:
ImmutableArray_1.cs
Źródło:
ImmutableArray_1.cs
Źródło:
ImmutableArray_1.cs

Sortuje określone elementy w niezmiennej tablicy przy użyciu określonego porównania.

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)

Parametry

index
Int32

Indeks pierwszego elementu do sortowania.

count
Int32

Liczba elementów do uwzględnienia w sortowaniu.

comparer
IComparer<T>

Implementacja do użycia podczas porównywania elementów lub null używania domyślnego modułu porównywarki.

Zwraca

Nowa niezmienna tablica zawierająca elementy w tej tablicy w kolejności posortowanej.

Dotyczy