ImmutableArray<T>.Sort 메서드

정의

오버로드

Sort()

기본 비교자를 사용하여 변경할 수 없는 배열의 요소를 정렬합니다.

Sort(IComparer<T>)

지정된 비교자를 사용하여 변경할 수 없는 배열의 요소를 정렬합니다.

Sort(Comparison<T>)

지정된 Comparison<T>을 사용하여 전체 ImmutableArray<T>의 요소를 정렬합니다.

Sort(Int32, Int32, IComparer<T>)

지정된 비교자를 사용하여 변경할 수 없는 배열의 지정된 요소를 정렬합니다.

Sort()

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

기본 비교자를 사용하여 변경할 수 없는 배열의 요소를 정렬합니다.

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)

반환

이 배열의 항목을 정렬된 순서대로 포함하는 변경할 수 없는 새 배열입니다.

적용 대상

Sort(IComparer<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

지정된 비교자를 사용하여 변경할 수 없는 배열의 요소를 정렬합니다.

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)

매개 변수

comparer
IComparer<T>

요소를 비교할 때 사용하거나 null 기본 비교자를 사용할 구현입니다.

반환

이 배열의 항목을 정렬된 순서대로 포함하는 변경할 수 없는 새 배열입니다.

적용 대상

Sort(Comparison<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

지정된 Comparison<T>을 사용하여 전체 ImmutableArray<T>의 요소를 정렬합니다.

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)

매개 변수

comparison
Comparison<T>

요소를 비교할 때 사용할 Comparison<T>입니다.

반환

정렬된 목록입니다.

예외

comparison가 null입니다.

적용 대상

Sort(Int32, Int32, IComparer<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

지정된 비교자를 사용하여 변경할 수 없는 배열의 지정된 요소를 정렬합니다.

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)

매개 변수

index
Int32

정렬할 첫 번째 요소의 인덱스입니다.

count
Int32

정렬에 포함할 요소 수입니다.

comparer
IComparer<T>

요소를 비교할 때 사용하거나 null 기본 비교자를 사용할 구현입니다.

반환

이 배열의 항목을 정렬된 순서대로 포함하는 변경할 수 없는 새 배열입니다.

적용 대상