Our coding standards ask that we minimise the use of C# var (suggests limiting it\'s use to being in conjunction with Linq). However there are times when using generics wher
@Adam - you can't declare a class here, since that won't be what comes back from an IDictionary<,>.GetEnumerator() - however, you can alias via using:
IDictionary<,>.GetEnumerator()
using
using InnerPair = System.Collections.Generic.KeyValuePair>;
Then:
foreach(InnerPair pair in dict) {...}
This is just a type alias, so works fine.