ImmutableSortedSet.ToImmutableSortedSet Méthode
Définition
Surcharges
ToImmutableSortedSet<TSource>(IEnumerable<TSource>) |
Énumère une séquence et produit un ensemble trié immuable de son contenu.Enumerates a sequence and produces an immutable sorted set of its contents. |
ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>.Builder) |
Crée un ensemble trié immuable à partir du contenu actuel de l’ensemble du générateur.Creates an immutable sorted set from the current contents of the builder's set. |
ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>) |
Énumère une séquence, produit un ensemble trié immuable de son contenu et utilise le comparateur spécifié.Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer. |
ToImmutableSortedSet<TSource>(IEnumerable<TSource>)
Énumère une séquence et produit un ensemble trié immuable de son contenu.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)
Paramètres de type
- TSource
Type des éléments de la séquence.The type of the elements in the sequence.
Paramètres
- source
- IEnumerable<TSource>
Séquence à énumérer.The sequence to enumerate.
Retours
- ImmutableSortedSet<TSource>
Ensemble trié immuable qui contient les éléments dans l’ordre spécifié.An immutable sorted set that contains the items in the specified sequence.
S’applique à
ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>.Builder)
Crée un ensemble trié immuable à partir du contenu actuel de l’ensemble du générateur.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)
Paramètres de type
- TSource
Type des éléments dans l’ensemble trié immuable.The type of the elements in the immutable sorted set.
Paramètres
- builder
- ImmutableSortedSet<TSource>.Builder
Générateur à partir duquel créer l’ensemble trié immuable.The builder to create the immutable sorted set from.
Retours
- ImmutableSortedSet<TSource>
Ensemble trié immuable qui contient le contenu actuel de l’ensemble du générateur.An immutable sorted set that contains the current contents in the builder's set.
S’applique à
ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)
Énumère une séquence, produit un ensemble trié immuable de son contenu et utilise le comparateur spécifié.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);
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)
Paramètres de type
- TSource
Type des éléments de la séquence.The type of the elements in the sequence.
Paramètres
- source
- IEnumerable<TSource>
Séquence à énumérer.The sequence to enumerate.
- comparer
- IComparer<TSource>
Comparateur à utiliser pour l’initialisation et l’ajout de membres à l’ensemble trié.The comparer to use for initializing and adding members to the sorted set.
Retours
- ImmutableSortedSet<TSource>
Ensemble trié immuable qui contient les éléments dans l’ordre spécifié.An immutable sorted set that contains the items in the specified sequence.