Exemple #1
0
        protected BaseJsonMediaTypeFormatter(BaseJsonMediaTypeFormatter formatter)
            : base(formatter)
        {
            Contract.Assert(formatter != null);
            this.SerializerSettings = formatter.SerializerSettings;

#if !NETFX_CORE // MaxDepth is not supported in portable library and so _maxDepth never changes there
            this.MaxDepth = formatter._maxDepth;
#endif
        }
        protected BaseJsonMediaTypeFormatter(BaseJsonMediaTypeFormatter formatter)
            : base(formatter)
        {
            Contract.Assert(formatter != null);
            this.SerializerSettings = formatter.SerializerSettings;

#if !NETFX_CORE // MaxDepth is not supported in portable library and so _maxDepth never changes there
            this.MaxDepth = formatter._maxDepth;
#endif
        }