ImmutableSortedSet.ToImmutableSortedSet Metodo

Definizione

Overload

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

Enumera una sequenza e produce un set ordinato non modificabile del relativo contenuto.Enumerates a sequence and produces an immutable sorted set of its contents.

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

Crea un set ordinato non modificabile dal contenuto corrente del set del generatore.Creates an immutable sorted set from the current contents of the builder's set.

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

Enumera una sequenza, produce un set ordinato non modificabile del relativo contenuto e usa l'operatore di confronto specificato.Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

Enumera una sequenza e produce un set ordinato non modificabile del relativo contenuto.Enumerates a sequence and produces an immutable sorted set of its contents.

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)

Parametri di tipo

TSource

Tipo degli elementi nella sequenza.The type of the elements in the sequence.

Parametri

source
IEnumerable<TSource>

Sequenza da enumerare.The sequence to enumerate.

Restituisce

ImmutableSortedSet<TSource>

Set ordinato non modificabile che contiene gli elementi nella sequenza specificata.An immutable sorted set that contains the items in the specified sequence.

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

Crea un set ordinato non modificabile dal contenuto corrente del set del generatore.Creates an immutable sorted set from the current contents of the builder's set.

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)

Parametri di tipo

TSource

Tipo di elementi nel set ordinato non modificabile.The type of the elements in the immutable sorted set.

Parametri

builder
ImmutableSortedSet<TSource>.Builder

Generatore da cui creare il set ordinato non modificabile.The builder to create the immutable sorted set from.

Restituisce

ImmutableSortedSet<TSource>

Set ordinato non modificabile che contiene il contenuto corrente nel set del generatore.An immutable sorted set that contains the current contents in the builder's set.

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

Enumera una sequenza, produce un set ordinato non modificabile del relativo contenuto e usa l'operatore di confronto specificato.Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.

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);
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)

Parametri di tipo

TSource

Tipo degli elementi nella sequenza.The type of the elements in the sequence.

Parametri

source
IEnumerable<TSource>

Sequenza da enumerare.The sequence to enumerate.

comparer
IComparer<TSource>

Operatore di confronto da usare per l'inizializzazione e l'aggiunta di membri a un set ordinato.The comparer to use for initializing and adding members to the sorted set.

Restituisce

ImmutableSortedSet<TSource>

Set ordinato non modificabile che contiene gli elementi nella sequenza specificata.An immutable sorted set that contains the items in the specified sequence.

Si applica a