Exemplo n.º 1
0
        public static int DeepGetHashCode <TKey, TValue>(this IDictionary <TKey, TValue> dic) where TKey : notnull
        {
            var comparer = new DictionaryComparer <TKey, TValue>();

            return(comparer.GetHashCode(dic));
        }
Exemplo n.º 2
0
        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));
        }