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)
Converts a DictionaryEntry into a KeyValuePair<TKey, TValue>.
public static KeyValuePair<TKey, TValue?> ToKeyValuePair<TKey, TValue>(this DictionaryEntry entry)
Parameters
entryDictionaryEntryThe 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
TKeyThe type of the key in the KeyValuePair<TKey, TValue>.
TValueThe type of the value in the KeyValuePair<TKey, TValue>.