ImmutableList<T>.Sort Metoda

Definicja

Przeciążenia

Sort()

Sortuje elementy na całej liście niezmiennej przy użyciu domyślnego modułu porównywania.

Sort(IComparer<T>)

Sortuje elementy na całej liście niezmiennej przy użyciu określonego porównania.

Sort(Comparison<T>)

Sortuje elementy na całej liście niezmiennej przy użyciu określonego porównania.

Sort(Int32, Int32, IComparer<T>)

Sortuje zakres elementów na liście niezmiennej przy użyciu określonego porównania.

Sort()

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

Sortuje elementy na całej liście niezmiennej przy użyciu domyślnego modułu porównywania.

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)

Zwraca

Posortowana lista.

Dotyczy

Sort(IComparer<T>)

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

Sortuje elementy na całej liście niezmiennej przy użyciu określonego porównania.

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)

Parametry

comparer
IComparer<T>

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

Zwraca

Posortowana lista.

Dotyczy

Sort(Comparison<T>)

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

Sortuje elementy na całej liście niezmiennej przy użyciu określonego porównania.

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)

Parametry

comparison
Comparison<T>

Delegat do użycia podczas porównywania elementów.

Zwraca

Posortowana lista.

Wyjątki

comparison to null.

Dotyczy

Sort(Int32, Int32, IComparer<T>)

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

Sortuje zakres elementów na liście niezmiennej przy użyciu określonego porównania.

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)

Parametry

index
Int32

Zerowy indeks początkowy zakresu do sortowania.

count
Int32

Długość zakresu do sortowania.

comparer
IComparer<T>

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

Zwraca

Posortowana lista.

Dotyczy