Is there a quick way to convert a Generic Dictionary from one type to another
I have this
IDictionary _commands;
maybe this function can be useful for you
IEnumerable> Convert(IDictionary dic) { foreach(var item in dic) { yield return new KeyValuePair(item.Key, item.Value); } }
And you will call it like so:
Handle(Convert(_commands));