ToEnumerable Method
Definition
- Namespace
- Cuemon.Extensions.Collections.Generic
- Assemblies
- Cuemon.Extensions.Collections.Generic.dll
ToEnumerable<TKey, TValue>(IDictionary<TKey, TValue>)
Returns the specified dictionary typed as KeyValuePair<TKey, TValue> sequence.
public static IEnumerable<KeyValuePair<TKey, TValue>> ToEnumerable<TKey, TValue>(this IDictionary<TKey, TValue> dictionary)
Parameters
dictionaryIDictionary<TKey, TValue>The IDictionary<TKey, TValue> to extend.
Returns
- IEnumerable<KeyValuePair<TKey, TValue>>
A KeyValuePair<TKey, TValue> equivalent sequence of
dictionary.
Type Parameters
TKeyThe Type of the key in the resulting KeyValuePair<TKey, TValue>.
TValueThe Type of the value in the resulting KeyValuePair<TKey, TValue>.
Exceptions
- ArgumentNullException
dictionaryis null.