ImmutableSortedDictionary.CreateRange Metoda

Definicja

Przeciążenia

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

Tworzy niezmienialny słownik posortowany, który zawiera określone elementy i używa domyślnego modułu porównującego.

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

Tworzy nowy niezmienialny słownik posortowany z określonego zakresu elementów z określonym modułem porównującym klucz.

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

Tworzy nowy niezmienialny słownik posortowany z określonego zakresu elementów z określonym kluczem i modułami porównującymi wartości.

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

Źródło:
ImmutableSortedDictionary.cs
Źródło:
ImmutableSortedDictionary.cs
Źródło:
ImmutableSortedDictionary.cs

Tworzy niezmienialny słownik posortowany, który zawiera określone elementy i używa domyślnego modułu porównującego.

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableSortedDictionary<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.ImmutableSortedDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)

Parametry typu

TKey

Typ kluczy przechowywanych w słowniku.

TValue

Typ wartości przechowywanych w słowniku.

Parametry

items
IEnumerable<KeyValuePair<TKey,TValue>>

Elementy do dodania do posortowanego słownika przed niezmiennym.

Zwraca

Niezmienialny słownik posortowany zawierający określone elementy.

Dotyczy

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

Źródło:
ImmutableSortedDictionary.cs
Źródło:
ImmutableSortedDictionary.cs
Źródło:
ImmutableSortedDictionary.cs

Tworzy nowy niezmienialny słownik posortowany z określonego zakresu elementów z określonym modułem porównującym klucz.

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

Parametry typu

TKey

Typ kluczy przechowywanych w słowniku.

TValue

Typ wartości przechowywanych w słowniku.

Parametry

keyComparer
IComparer<TKey>

Implementacja porównująca do użycia w celu oceny kluczy pod kątem równości i sortowania.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Elementy do dodania do posortowanego słownika.

Zwraca

Nowy niezmienialny słownik posortowany, który zawiera określone elementy i używa określonego modułu porównania kluczy.

Dotyczy

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

Źródło:
ImmutableSortedDictionary.cs
Źródło:
ImmutableSortedDictionary.cs
Źródło:
ImmutableSortedDictionary.cs

Tworzy nowy niezmienialny słownik posortowany z określonego zakresu elementów z określonym kluczem i modułami porównującymi wartości.

public:
generic <typename TKey, typename TValue>
 static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ CreateRange(System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> CreateRange<TKey,TValue> (System.Collections.Generic.IComparer<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.IComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> * seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function CreateRange(Of TKey, TValue) (keyComparer As IComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue), items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)

Parametry typu

TKey

Typ kluczy przechowywanych w słowniku.

TValue

Typ wartości przechowywanych w słowniku.

Parametry

keyComparer
IComparer<TKey>

Implementacja porównująca używana do porównywania kluczy pod kątem równości i sortowania.

valueComparer
IEqualityComparer<TValue>

Implementacja porównująca używana do porównywania wartości pod kątem równości.

items
IEnumerable<KeyValuePair<TKey,TValue>>

Elementy do dodania do posortowanego słownika przed niezmiennym.

Zwraca

Niezmienialny słownik posortowany, który zawiera określone elementy i używa określonych porównań.

Dotyczy