ImmutableList<T>.Sort 메서드

정의

오버로드

Sort()

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

Sort(IComparer<T>)

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

Sort(Comparison<T>)

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

Sort(Int32, Int32, IComparer<T>)

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

Sort()

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

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

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)

반환

정렬된 목록입니다.

적용 대상

Sort(IComparer<T>)

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

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

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)

매개 변수

comparer
IComparer<T>

요소를 비교할 때 사용할 구현이거나, 기본 비교자(Default)를 사용하려면 null입니다.

반환

정렬된 목록입니다.

적용 대상

Sort(Comparison<T>)

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

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

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)

매개 변수

comparison
Comparison<T>

요소를 비교할 때 사용할 대리자입니다.

반환

정렬된 목록입니다.

예외

comparisonnull입니다.

적용 대상

Sort(Int32, Int32, IComparer<T>)

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

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

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)

매개 변수

index
Int32

정렬할 범위의 0부터 시작하는 인덱스입니다.

count
Int32

정렬할 범위의 길이입니다.

comparer
IComparer<T>

요소를 비교할 때 사용할 구현이거나, 기본 비교자(Default)를 사용하려면 null입니다.

반환

정렬된 목록입니다.

적용 대상