示例#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));
        }
示例#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));
        }