ImmutableSortedSet.ToImmutableSortedSet Метод

Определение

Перегрузки

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

Выполняет перечисление последовательности и создает неизменяемый отсортированный набор на основе ее содержимого.

ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>.Builder)

Создает неизменяемый отсортированный набор из текущего содержимого набора построителя.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)

Выполняет перечисление последовательности, создает неизменяемый отсортированный набор на основе ее содержимого и использует указанную функцию сравнения.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

Выполняет перечисление последовательности и создает неизменяемый отсортированный набор на основе ее содержимого.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableSortedSet<TSource> ^ ToImmutableSortedSet(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableSortedSet : seq<'Source> -> System.Collections.Immutable.ImmutableSortedSet<'Source>
<Extension()>
Public Function ToImmutableSortedSet(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableSortedSet(Of TSource)

Параметры типа

TSource

Тип элементов последовательности.

Параметры

source
IEnumerable<TSource>

Перебираемая последовательность.

Возвращаемое значение

ImmutableSortedSet<TSource>

Неизменяемый отсортированный набор, который содержит элементы из указанной последовательности.

Применяется к

ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>.Builder)

Создает неизменяемый отсортированный набор из текущего содержимого набора построителя.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableSortedSet<TSource> ^ ToImmutableSortedSet(System::Collections::Immutable::ImmutableSortedSet<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Immutable.ImmutableSortedSet<TSource>.Builder builder);
static member ToImmutableSortedSet : System.Collections.Immutable.ImmutableSortedSet<'Source>.Builder -> System.Collections.Immutable.ImmutableSortedSet<'Source>
<Extension()>
Public Function ToImmutableSortedSet(Of TSource) (builder As ImmutableSortedSet(Of TSource).Builder) As ImmutableSortedSet(Of TSource)

Параметры типа

TSource

Тип элементов в неизменяемом отсортированного набора.

Параметры

builder
ImmutableSortedSet<TSource>.Builder

Построитель для создания неизменяемого отсортированного набора.

Возвращаемое значение

ImmutableSortedSet<TSource>

Неизменяемый отсортированный набор, содержащий текущее содержимое набора построителя.

Применяется к

ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)

Выполняет перечисление последовательности, создает неизменяемый отсортированный набор на основе ее содержимого и использует указанную функцию сравнения.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableSortedSet<TSource> ^ ToImmutableSortedSet(System::Collections::Generic::IEnumerable<TSource> ^ source, System::Collections::Generic::IComparer<TSource> ^ comparer);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IComparer<TSource> comparer);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IComparer<TSource>? comparer);
static member ToImmutableSortedSet : seq<'Source> * System.Collections.Generic.IComparer<'Source> -> System.Collections.Immutable.ImmutableSortedSet<'Source>
<Extension()>
Public Function ToImmutableSortedSet(Of TSource) (source As IEnumerable(Of TSource), comparer As IComparer(Of TSource)) As ImmutableSortedSet(Of TSource)

Параметры типа

TSource

Тип элементов последовательности.

Параметры

source
IEnumerable<TSource>

Перебираемая последовательность.

comparer
IComparer<TSource>

Функция сравнения, которую нужно использовать для инициализации и добавления элементов в отсортированный набор.

Возвращаемое значение

ImmutableSortedSet<TSource>

Неизменяемый отсортированный набор, который содержит элементы из указанной последовательности.

Применяется к