Exemplo n.º 1
0
        // Removes the surrogate associated with a given type.  Does not
        // check chained surrogates.
        public virtual void RemoveSurrogate(Type type, StreamingContext context)
        {
            ArgumentNullException.ThrowIfNull(type);

            SurrogateKey key = new SurrogateKey(type, context);

            _surrogates.Remove(key);
        }
Exemplo n.º 2
0
        // Removes the surrogate associated with a given type.  Does not
        // check chained surrogates.
        public virtual void RemoveSurrogate(Type type, StreamingContext context)
        {
            if (type == null)
            {
                throw new ArgumentNullException(nameof(type));
            }

            SurrogateKey key = new SurrogateKey(type, context);

            _surrogates.Remove(key);
        }
        // Removes the surrogate associated with a given type.  Does not
        // check chained surrogates.
        public virtual void RemoveSurrogate(Type type, StreamingContext context)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            Contract.EndContractBlock();

            SurrogateKey key = new SurrogateKey(type, context);

            m_surrogates.Remove(key);
        }