Ejemplo n.º 1
0
            public SlowCompoundKey(Type type, JsonConverterCollection collection)
                : base(type.GetHashCode() * 17 + collection.GetHashCode())
            {
                Debug.Assert(collection.IsFrozen);

                this.Type       = type;
                this.Collection = new WeakReference <JsonConverterCollection>(collection);
            }
Ejemplo n.º 2
0
            public FastCompoundKey(Type type, JsonConverterCollection collection)
                : base(type.GetHashCode() * 17 + collection.GetHashCode())
            {
                Debug.Assert(collection.IsFrozen);

                this.Type       = type;
                this.Collection = collection;
            }