Share via


ImmutableDictionary.CreateRange 메서드

정의

오버로드

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

지정된 항목이 포함된 변경할 수 없는 새 사전을 만듭니다.

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

지정된 항목을 포함하고 지정된 키 비교자를 사용하는 변경할 수 없는 새 사전을 만듭니다.

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

지정된 항목을 포함하고 지정된 키 비교자를 사용하는 변경할 수 없는 새 사전을 만듭니다.

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

Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs

지정된 항목이 포함된 변경할 수 없는 새 사전을 만듭니다.

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)

형식 매개 변수

TKey

사전의 키 형식입니다.

TValue

사전의 값 형식입니다.

매개 변수

items
IEnumerable<KeyValuePair<TKey,TValue>>

변경할 수 없는 상태가 되기 전에 사전을 채우는 데 사용할 항목입니다.

반환

지정된 항목이 포함된 변경할 수 없는 새 사전입니다.

적용 대상

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

Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs

지정된 항목을 포함하고 지정된 키 비교자를 사용하는 변경할 수 없는 새 사전을 만듭니다.

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)

형식 매개 변수

TKey

사전의 키 형식입니다.

TValue

사전의 값 형식입니다.

매개 변수

keyComparer
IEqualityComparer<TKey>

키가 같은지 비교하는 데 사용할 비교자 구현입니다.

items
IEnumerable<KeyValuePair<TKey,TValue>>

변경할 수 없는 상태가 되기 전에 사전에 추가할 항목입니다.

반환

지정된 항목을 포함하고 지정된 비교자를 사용하는 변경할 수 없는 새 사전입니다.

적용 대상

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

Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs
Source:
ImmutableDictionary.cs

지정된 항목을 포함하고 지정된 키 비교자를 사용하는 변경할 수 없는 새 사전을 만듭니다.

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)

형식 매개 변수

TKey

사전의 키 형식입니다.

TValue

사전의 값 형식입니다.

매개 변수

keyComparer
IEqualityComparer<TKey>

키가 같은지 비교하는 데 사용할 비교자 구현입니다.

valueComparer
IEqualityComparer<TValue>

값이 같은지 비교하는 데 사용할 비교자 구현입니다.

items
IEnumerable<KeyValuePair<TKey,TValue>>

변경할 수 없는 상태가 되기 전에 사전에 추가할 항목입니다.

반환

지정된 항목을 포함하고 지정된 비교자를 사용하는 변경할 수 없는 새 사전입니다.

적용 대상