ImmutableArray<T>.Sort Método

Definição

Sobrecargas

Nome Description
Sort()

Classifica os elementos na matriz imutável usando o comparador padrão.

Sort(IComparer<T>)

Classifica os elementos na matriz imutável usando o comparador especificado.

Sort(Int32, Int32, IComparer<T>)

Classifica os elementos especificados na matriz imutável usando o comparador especificado.

Sort()

Classifica os elementos na matriz imutável usando o comparador padrão.

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)

Retornos

Uma nova matriz imutável que contém os itens nessa matriz, em ordem classificada.

Aplica-se a

Sort(IComparer<T>)

Classifica os elementos na matriz imutável usando o comparador especificado.

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)

Parâmetros

comparer
IComparer<T>

A implementação a ser usada ao comparar elementos ou null usar o comparador padrão.

Retornos

Uma nova matriz imutável que contém os itens nessa matriz, em ordem classificada.

Aplica-se a

Sort(Int32, Int32, IComparer<T>)

Classifica os elementos especificados na matriz imutável usando o comparador especificado.

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)

Parâmetros

index
Int32

O índice do primeiro elemento a ser classificado.

count
Int32

O número de elementos a serem incluídos na classificação.

comparer
IComparer<T>

A implementação a ser usada ao comparar elementos ou null usar o comparador padrão.

Retornos

Uma nova matriz imutável que contém os itens nessa matriz, em ordem classificada.

Aplica-se a