Comparing 2 Dictionary Instances
var contentsEqual = source.DictionaryEqual(target); // … public static bool DictionaryEqual<TKey, TValue>( this IDictionary<TKey, TValue> first, IDictionary<TKey, TValue> second) { return first.DictionaryEqual(second, null); } public static bool DictionaryEqual<TKey, TValue>( this IDictionary<TKey, TValue> first, IDictionary<TKey, TValue> second, IEqualityComparer<TValue> valueComparer) { if (first == second) return true; if ((first == null) || (second == null)) return false; if … Read more