If I understand your question correctly, you want to use that SuperAwesomeNinjaMethod
with the indicated signature, and for the second argument, you want to pass an instance of System.Collections.Generic.Dictionary<TKey, TValue>
, right?
The Dictionary
class implements the ICollection
interface, hence you can just pass your Dictionary
instance. You will get a collection of KeyValuePair<TKey, TValue>
solved Working with ICollection. Convert to Dictionary