/// <summary> /// Initializes a new instance of the <see cref="FormUrlEncodedMediaTypeFormatter"/> class. /// </summary> /// <param name="formatter">The <see cref="FormUrlEncodedMediaTypeFormatter"/> instance to copy settings from.</param> protected FormUrlEncodedMediaTypeFormatter(FormUrlEncodedMediaTypeFormatter formatter) : base(formatter) { this.MaxDepth = formatter.MaxDepth; this.ReadBufferSize = formatter.ReadBufferSize; this._isDerived = this.GetType() != typeof(FormUrlEncodedMediaTypeFormatter); }
/// <summary> /// Initializes a new instance of the <see cref="FormUrlEncodedMediaTypeFormatter"/> class. /// </summary> /// <param name="formatter">The <see cref="FormUrlEncodedMediaTypeFormatter"/> instance to copy settings from.</param> protected FormUrlEncodedMediaTypeFormatter(FormUrlEncodedMediaTypeFormatter formatter) : base(formatter) { this.MaxDepth = formatter.MaxDepth; this.ReadBufferSize = formatter.ReadBufferSize; this._isDerived = this.GetType() != typeof(FormUrlEncodedMediaTypeFormatter); }