Source/NFX/Serialization/BSON/BSONDocument.cs
/// <summary>
/// Serializes this dosument into a TextWriter - this method is used by JSON serializer(JSONWriter)
/// </summary>
Serializes this dosument into a TextWriter - this method is used by JSON serializer(JSONWriter)
Serializes this dosument into a TextWriter - this method is used by JSON serializer ( JSONWriter )
public void WriteAsJSON(TextWriter wri, int nestingLevel, JSONWritingOptions options = null)
      {
        JSONWriter.WriteMap(wri, this.Select(elm => new DictionaryEntry(elm.Name, elm)), nestingLevel+1, options);
      }
public void WriteAsJSON ( TextWriter wri , int nestingLevel , JSONWritingOptions options = null ) { JSONWriter . WriteMap ( wri , this . Select ( elm => new DictionaryEntry ( elm . Name , elm ) ) , nestingLevel + 1 , options ) ; }
Serializes this dosument into a TextWriter - this method is used by JSON serializer(JSONWriter)
Serializes this dosument into a TextWriter - this method is used by JSON serializer ( JSONWriter )
//this will throw nesting exception in case of cyclical graph
wri
TextWriter
nestingLevel
int
options
JSONWritingOptions