ImmutableDictionary.CreateRange Metoda

Definice

Přetížení

CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)

Vytvoří nový neměnný slovník, který obsahuje zadané položky.

CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>)

Vytvoří nový neměnný slovník, který obsahuje zadané položky a použije zadaný porovnávací nástroj klíčů.

CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>)

Vytvoří nový neměnný slovník, který obsahuje zadané položky a použije zadaný porovnávací nástroj klíčů.

CreateRange<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)

Zdroj:
ImmutableDictionary.cs
Zdroj:
ImmutableDictionary.cs
Zdroj:
ImmutableDictionary.cs

Vytvoří nový neměnný slovník, který obsahuje zadané položky.

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)

Parametry typu

TKey

Typ klíčů ve slovníku.

TValue

Typ hodnot ve slovníku.

Parametry

items
IEnumerable<KeyValuePair<TKey,TValue>>

Položky použité k naplnění slovníku před tím, než bude neměnný.

Návraty

Nový neměnný slovník, který obsahuje zadané položky.

Platí pro

CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEnumerable<KeyValuePair<TKey,TValue>>)

Zdroj:
ImmutableDictionary.cs
Zdroj:
ImmutableDictionary.cs
Zdroj:
ImmutableDictionary.cs

Vytvoří nový neměnný slovník, který obsahuje zadané položky a použije zadaný porovnávací nástroj klíčů.

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey> keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey>? keyComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : System.Collections.Generic.IEqualityComparer<'Key> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IEqualityComparer(Of TKey), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)

Parametry typu

TKey

Typ klíčů ve slovníku.

TValue

Typ hodnot ve slovníku.

Parametry

keyComparer
IEqualityComparer<TKey>

Implementace porovnávače, která se má použít k porovnání klíčů pro rovnost.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Položky, které se mají přidat do slovníku, než bude neměnný.

Návraty

Nový neměnný slovník, který obsahuje zadané položky a používá zadaný porovnávací nástroj.

Platí pro

CreateRange<TKey,TValue>(IEqualityComparer<TKey>, IEqualityComparer<TValue>, IEnumerable<KeyValuePair<TKey,TValue>>)

Zdroj:
ImmutableDictionary.cs
Zdroj:
ImmutableDictionary.cs
Zdroj:
ImmutableDictionary.cs

Vytvoří nový neměnný slovník, který obsahuje zadané položky a použije zadaný porovnávací nástroj klíčů.

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IEqualityComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
static member CreateRange : System.Collections.Generic.IEqualityComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IEqualityComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)

Parametry typu

TKey

Typ klíčů ve slovníku.

TValue

Typ hodnot ve slovníku.

Parametry

keyComparer
IEqualityComparer<TKey>

Implementace porovnávače, která se má použít k porovnání klíčů pro rovnost.

valueComparer
IEqualityComparer<TValue>

Implementace porovnávače, která se má použít k porovnání hodnot rovnosti.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Položky, které se mají přidat do slovníku, než bude neměnný.

Návraty

Nový neměnný slovník, který obsahuje zadané položky a používá zadaný porovnávací nástroj.

Platí pro