ImmutableArray<T>.Sort Metódus

Definíció

Túlterhelések

Name Description
Sort()

Az alapértelmezett összehasonlító használatával rendezi a nem módosítható tömb elemeit.

Sort(IComparer<T>)

Rendezi a nem módosítható tömb elemeit a megadott összehasonlító használatával.

Sort(Int32, Int32, IComparer<T>)

Rendezi a nem módosítható tömb megadott elemeit a megadott összehasonlító használatával.

Sort()

Az alapértelmezett összehasonlító használatával rendezi a nem módosítható tömb elemeit.

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)

Válaszok

Egy új nem módosítható tömb, amely a tömb elemeit tartalmazza rendezési sorrendben.

A következőre érvényes:

Sort(IComparer<T>)

Rendezi a nem módosítható tömb elemeit a megadott összehasonlító használatával.

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)

Paraméterek

comparer
IComparer<T>

Az elemek összehasonlításakor vagy null az alapértelmezett összehasonlító használata esetén használandó implementáció.

Válaszok

Egy új nem módosítható tömb, amely a tömb elemeit tartalmazza rendezési sorrendben.

A következőre érvényes:

Sort(Int32, Int32, IComparer<T>)

Rendezi a nem módosítható tömb megadott elemeit a megadott összehasonlító használatával.

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)

Paraméterek

index
Int32

Az első rendezendő elem indexe.

count
Int32

A rendezésbe belefoglalandó elemek száma.

comparer
IComparer<T>

Az elemek összehasonlításakor vagy null az alapértelmezett összehasonlító használata esetén használandó implementáció.

Válaszok

Egy új nem módosítható tömb, amely a tömb elemeit tartalmazza rendezési sorrendben.

A következőre érvényes: