public static int DeepGetHashCode <TKey, TValue>(this IDictionary <TKey, TValue> dic) where TKey : notnull { var comparer = new DictionaryComparer <TKey, TValue>(); return(comparer.GetHashCode(dic)); }
public static bool DeepEquals <TKey, TValue>(this IDictionary <TKey, TValue> first, IDictionary <TKey, TValue> second) where TKey : notnull { var comparer = new DictionaryComparer <TKey, TValue>(); return(comparer.Equals(first, second)); }