ImmutableSortedSet.CreateRange Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
CreateRange<T>(IEnumerable<T>) |
Crée une collection immuable qui contient les éléments spécifiés. |
CreateRange<T>(IComparer<T>, IEnumerable<T>) |
Crée une collection immuable qui contient les éléments spécifiés. |
CreateRange<T>(IEnumerable<T>)
- Source:
- ImmutableSortedSet.cs
- Source:
- ImmutableSortedSet.cs
- Source:
- ImmutableSortedSet.cs
Crée une collection immuable qui contient les éléments spécifiés.
public:
generic <typename T>
static System::Collections::Immutable::ImmutableSortedSet<T> ^ CreateRange(System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.ImmutableSortedSet<T> CreateRange<T> (System.Collections.Generic.IEnumerable<T> items);
static member CreateRange : seq<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function CreateRange(Of T) (items As IEnumerable(Of T)) As ImmutableSortedSet(Of T)
Paramètres de type
- T
Type des éléments stockés dans la collection.
Paramètres
- items
- IEnumerable<T>
Éléments à ajouter à l’ensemble avant qu’il soit immuable.
Retours
Nouvel ensemble immuable qui contient l’élément spécifié.
S’applique à
CreateRange<T>(IComparer<T>, IEnumerable<T>)
- Source:
- ImmutableSortedSet.cs
- Source:
- ImmutableSortedSet.cs
- Source:
- ImmutableSortedSet.cs
Crée une collection immuable qui contient les éléments spécifiés.
public:
generic <typename T>
static System::Collections::Immutable::ImmutableSortedSet<T> ^ CreateRange(System::Collections::Generic::IComparer<T> ^ comparer, System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.ImmutableSortedSet<T> CreateRange<T> (System.Collections.Generic.IComparer<T> comparer, System.Collections.Generic.IEnumerable<T> items);
public static System.Collections.Immutable.ImmutableSortedSet<T> CreateRange<T> (System.Collections.Generic.IComparer<T>? comparer, System.Collections.Generic.IEnumerable<T> items);
static member CreateRange : System.Collections.Generic.IComparer<'T> * seq<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function CreateRange(Of T) (comparer As IComparer(Of T), items As IEnumerable(Of T)) As ImmutableSortedSet(Of T)
Paramètres de type
- T
Type des éléments stockés dans la collection.
Paramètres
- comparer
- IComparer<T>
Comparateur à utiliser pour comparer les éléments de cet ensemble.
- items
- IEnumerable<T>
Éléments à ajouter à l’ensemble avant qu’il soit immuable.
Retours
Nouvel ensemble immuable qui contient l’élément spécifié.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour