Enumerating directly over an IDictionary<TKey,TValue>returns a sequence of KeyValuePair structs: public struct KeyValuePair <TKey, TValue> { public TKey Key { get; } public TValue Value { get; } } Enumerating over a nongeneric IDictionary…
/// <summary>/// Represents a dictionary mapping keys to values./// </summary>/// /// <remarks>/// Provides the plumbing for the portions of IDictionary<TKey,/// TValue> which can reasonably be implemented without any/// dependency…