ToEnumerable Method
Definition
- Namespace
- Cuemon.Collections.Generic
- Assemblies
- Cuemon.Core.dll
ToEnumerable<TKey, TValue>(IDecorator<IDictionary<TKey, TValue>>)
Returns the enclosed IDictionary<TKey, TValue> of the decorator typed as KeyValuePair<TKey, TValue> sequence.
public static IEnumerable<KeyValuePair<TKey, TValue>> ToEnumerable<TKey, TValue>(this IDecorator<IDictionary<TKey, TValue>> decorator)
Parameters
decoratorIDecorator<IDictionary<TKey, TValue>>The IDecorator<T> to extend.
Returns
- IEnumerable<KeyValuePair<TKey, TValue>>
A KeyValuePair<TKey, TValue> equivalent sequence of the enclosed IDictionary<TKey, TValue> of the
decorator.
Type Parameters
TKeyThe type of the keys in the dictionary.
TValueThe type of the values in the dictionary.
Exceptions
- ArgumentNullException
decoratorcannot be null.