ImmutableArrayExtensions.ToDictionary 메서드

정의

오버로드

ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>)

이 배열의 내용을 기반으로 사전을 만듭니다.

ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>, IEqualityComparer<TKey>)

이 배열의 내용을 기반으로 사전을 만듭니다.

ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>, IEqualityComparer<TKey>)

이 배열의 내용을 기반으로 사전을 만듭니다.

ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>)

이 배열의 내용을 기반으로 사전을 만듭니다.

ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>)

이 배열의 내용을 기반으로 사전을 만듭니다.

public:
generic <typename TKey, typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::Dictionary<TKey, T> ^ ToDictionary(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, TKey> ^ keySelector);
public static System.Collections.Generic.Dictionary<TKey,T> ToDictionary<TKey,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector);
static member ToDictionary : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, 'Key> -> System.Collections.Generic.Dictionary<'Key, 'T>
<Extension()>
Public Function ToDictionary(Of TKey, T) (immutableArray As ImmutableArray(Of T), keySelector As Func(Of T, TKey)) As Dictionary(Of TKey, T)

형식 매개 변수

TKey

키의 형식입니다.

T

컬렉션에 의해 포함되는 요소의 형식입니다.

매개 변수

immutableArray
ImmutableArray<T>

사전을 만들 배열입니다.

keySelector
Func<T,TKey>

키 선택기입니다.

반환

Dictionary<TKey,T>

새로 초기화된 사전입니다.

적용 대상

ToDictionary<TKey,T>(ImmutableArray<T>, Func<T,TKey>, IEqualityComparer<TKey>)

이 배열의 내용을 기반으로 사전을 만듭니다.

public:
generic <typename TKey, typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::Dictionary<TKey, T> ^ ToDictionary(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, TKey> ^ keySelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public static System.Collections.Generic.Dictionary<TKey,T> ToDictionary<TKey,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector, System.Collections.Generic.IEqualityComparer<TKey> comparer);
public static System.Collections.Generic.Dictionary<TKey,T> ToDictionary<TKey,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
static member ToDictionary : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, 'Key> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.Dictionary<'Key, 'T>
<Extension()>
Public Function ToDictionary(Of TKey, T) (immutableArray As ImmutableArray(Of T), keySelector As Func(Of T, TKey), comparer As IEqualityComparer(Of TKey)) As Dictionary(Of TKey, T)

형식 매개 변수

TKey

키의 형식입니다.

T

컬렉션에 의해 포함되는 요소의 형식입니다.

매개 변수

immutableArray
ImmutableArray<T>

사전을 만들 배열입니다.

keySelector
Func<T,TKey>

키 선택기입니다.

comparer
IEqualityComparer<TKey>

사전을 초기화할 비교자입니다.

반환

Dictionary<TKey,T>

새로 초기화된 사전입니다.

적용 대상

ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>, IEqualityComparer<TKey>)

이 배열의 내용을 기반으로 사전을 만듭니다.

public:
generic <typename TKey, typename TElement, typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::Dictionary<TKey, TElement> ^ ToDictionary(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, TKey> ^ keySelector, Func<T, TElement> ^ elementSelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public static System.Collections.Generic.Dictionary<TKey,TElement> ToDictionary<TKey,TElement,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector, Func<T,TElement> elementSelector, System.Collections.Generic.IEqualityComparer<TKey> comparer);
public static System.Collections.Generic.Dictionary<TKey,TElement> ToDictionary<TKey,TElement,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector, Func<T,TElement> elementSelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
static member ToDictionary : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, 'Key> * Func<'T, 'Element> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.Dictionary<'Key, 'Element>
<Extension()>
Public Function ToDictionary(Of TKey, TElement, T) (immutableArray As ImmutableArray(Of T), keySelector As Func(Of T, TKey), elementSelector As Func(Of T, TElement), comparer As IEqualityComparer(Of TKey)) As Dictionary(Of TKey, TElement)

형식 매개 변수

TKey

키의 형식입니다.

TElement

요소의 유형입니다.

T

컬렉션에 의해 포함되는 요소의 형식입니다.

매개 변수

immutableArray
ImmutableArray<T>

사전을 만들 배열입니다.

keySelector
Func<T,TKey>

키 선택기입니다.

elementSelector
Func<T,TElement>

요소 선택기입니다.

comparer
IEqualityComparer<TKey>

사전을 초기화할 비교자입니다.

반환

Dictionary<TKey,TElement>

새로 초기화된 사전입니다.

적용 대상

ToDictionary<TKey,TElement,T>(ImmutableArray<T>, Func<T,TKey>, Func<T,TElement>)

이 배열의 내용을 기반으로 사전을 만듭니다.

public:
generic <typename TKey, typename TElement, typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::Dictionary<TKey, TElement> ^ ToDictionary(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, TKey> ^ keySelector, Func<T, TElement> ^ elementSelector);
public static System.Collections.Generic.Dictionary<TKey,TElement> ToDictionary<TKey,TElement,T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,TKey> keySelector, Func<T,TElement> elementSelector);
static member ToDictionary : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, 'Key> * Func<'T, 'Element> -> System.Collections.Generic.Dictionary<'Key, 'Element>
<Extension()>
Public Function ToDictionary(Of TKey, TElement, T) (immutableArray As ImmutableArray(Of T), keySelector As Func(Of T, TKey), elementSelector As Func(Of T, TElement)) As Dictionary(Of TKey, TElement)

형식 매개 변수

TKey

키의 형식입니다.

TElement

요소의 유형입니다.

T

컬렉션에 의해 포함되는 요소의 형식입니다.

매개 변수

immutableArray
ImmutableArray<T>

사전을 만들 배열입니다.

keySelector
Func<T,TKey>

키 선택기입니다.

elementSelector
Func<T,TElement>

요소 선택기입니다.

반환

Dictionary<TKey,TElement>

새로 초기화된 사전입니다.

적용 대상