ImmutableSortedSet.CreateRange Metoda

Definice

Přetížení

CreateRange<T>(IEnumerable<T>)

Vytvoří novou neměnnou kolekci, která obsahuje zadané položky.

CreateRange<T>(IComparer<T>, IEnumerable<T>)

Vytvoří novou neměnnou kolekci, která obsahuje zadané položky.

CreateRange<T>(IEnumerable<T>)

Zdroj:
ImmutableSortedSet.cs
Zdroj:
ImmutableSortedSet.cs
Zdroj:
ImmutableSortedSet.cs

Vytvoří novou neměnnou kolekci, která obsahuje zadané položky.

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)

Parametry typu

T

Typ položek uložených kolekcí.

Parametry

items
IEnumerable<T>

Položky, které se mají přidat do sady, pomocí příkazu před neměnnou položkou.

Návraty

Nová neměnná sada, která obsahuje zadané položky.

Platí pro

CreateRange<T>(IComparer<T>, IEnumerable<T>)

Zdroj:
ImmutableSortedSet.cs
Zdroj:
ImmutableSortedSet.cs
Zdroj:
ImmutableSortedSet.cs

Vytvoří novou neměnnou kolekci, která obsahuje zadané položky.

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)

Parametry typu

T

Typ položek uložených kolekcí.

Parametry

comparer
IComparer<T>

Porovnávače, který se má použít k porovnání prvků v této sadě.

items
IEnumerable<T>

Položky, které se mají přidat do sady, než bude neměnná.

Návraty

Nová neměnná sada, která obsahuje zadané položky.

Platí pro