ImmutableList<T>.Sort Método

Definição

Sobrecargas

Name Description
Sort()

Ordena os elementos de toda a lista imutável usando o comparador padrão.

Sort(IComparer<T>)

Ordena os elementos em toda a lista imutável usando o comparador especificado.

Sort(Comparison<T>)

Ordena os elementos em toda a lista imutável usando o comparador especificado.

Sort(Int32, Int32, IComparer<T>)

Ordena um conjunto de elementos na lista imutável usando o comparador especificado.

Sort()

Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs

Ordena os elementos de toda a lista imutável usando o comparador padrão.

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)

Devoluções

A lista resolvida.

Aplica-se a

Sort(IComparer<T>)

Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs

Ordena os elementos em toda a lista imutável usando o comparador especificado.

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)

Parâmetros

comparer
IComparer<T>

A implementação a usar ao comparar elementos, ou null ao usar o comparador padrão (Default).

Devoluções

A lista resolvida.

Aplica-se a

Sort(Comparison<T>)

Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs

Ordena os elementos em toda a lista imutável usando o comparador especificado.

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)

Parâmetros

comparison
Comparison<T>

O delegado a usar ao comparar elementos.

Devoluções

A lista resolvida.

Exceções

comparison é null.

Aplica-se a

Sort(Int32, Int32, IComparer<T>)

Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs
Origem:
ImmutableList_1.cs

Ordena um conjunto de elementos na lista imutável usando o comparador especificado.

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)

Parâmetros

index
Int32

O índice inicial baseado em zero do intervalo a ordenar.

count
Int32

O comprimento do intervalo para ordenar.

comparer
IComparer<T>

A implementação a usar ao comparar elementos, ou null ao usar o comparador padrão (Default).

Devoluções

A lista resolvida.

Aplica-se a