Table of Contents

Class DictionaryEntryExtensions

Namespace
Garyon.Extensions
Assembly
Garyon.dll

Provides extensions for the DictionaryEntry struct.

public static class DictionaryEntryExtensions
Inheritance
DictionaryEntryExtensions
Inherited Members

Methods

ToKeyValuePair<TKey, TValue>(DictionaryEntry)

public static KeyValuePair<TKey, TValue?> ToKeyValuePair<TKey, TValue>(this DictionaryEntry entry)

Parameters

entry DictionaryEntry

The entry to convert into a KeyValuePair<TKey, TValue>.

Returns

KeyValuePair<TKey, TValue>

A KeyValuePair<TKey, TValue> constructed from the given DictionaryEntry whose key and value components are strongly typed.

Type Parameters

TKey

The type of the key in the KeyValuePair<TKey, TValue>.

TValue

The type of the value in the KeyValuePair<TKey, TValue>.