Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of Json writer.
 /// </summary>
 /// <param name="writer">Writer to which text needs to be written.</param>
 /// <param name="isIeee754Compatible">if it is IEEE754Compatible.</param>
 /// <param name="stringEscapeOption">Specifies how to escape string.</param>
 internal JsonWriter(TextWriter writer, bool isIeee754Compatible, ODataStringEscapeOption stringEscapeOption)
 {
     this.writer = new NonIndentedTextWriter(writer);
     this.scopes = new Stack <Scope>();
     this.isIeee754Compatible = isIeee754Compatible;
     this.stringEscapeOption  = stringEscapeOption;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of Json writer.
 /// </summary>
 /// <param name="writer">Writer to which text needs to be written.</param>
 /// <param name="isIeee754Compatible">if it is IEEE754Compatible</param>
 internal JsonWriter(TextWriter writer, bool isIeee754Compatible)
 {
     this.writer = new NonIndentedTextWriter(writer);
     this.scopes = new Stack <Scope>();
     this.isIeee754Compatible = isIeee754Compatible;
 }