/// <summary> /// Initializes a new instance of the JsonReader class. /// </summary> protected JsonReader() { this.JsonObjectState = new JsonObjectState(readMode: true); }
/// <summary> /// Initializes a new instance of the JsonWriter class. /// </summary> protected JsonWriter() { this.JsonObjectState = new JsonObjectState(false); }
/// <summary> /// Initializes a new instance of the JsonWriter class. /// </summary> /// <param name="skipValidation">Whether or not to skip validation.</param> protected JsonWriter(bool skipValidation) { this.JsonObjectState = new JsonObjectState(false); this.SkipValidation = skipValidation; }
/// <summary> /// Initializes a new instance of the JsonReader class. /// </summary> /// <param name="skipValidation">Whether or not to skip validation.</param> protected JsonReader(bool skipValidation) { this.JsonObjectState = new JsonObjectState(true); this.SkipValidation = skipValidation; }