Is there a quick way to convert a Generic Dictionary from one type to another
I have this
IDictionary<string, string> _commands;
and need to pass it to a function that takes a slightly different typed Dictionary
public void Handle(IDictionary<string, Object> _commands);
I suppose I would write
Not the most efficient thing in the world to do, but until covariance is in, that’s the breaks.