예제 #1
0
 /// <summary>
 /// Writes the start of a constructor with the given name.
 /// </summary>
 /// <param name="name">The name of the constructor.</param>
 public override void WriteStartConstructor(string name)
 {
     throw JsonWriterException.Create(this, "Cannot write JSON constructor as BSON.", null);
 }
예제 #2
0
 /// <summary>
 /// Writes raw JSON.
 /// </summary>
 /// <param name="json">The raw JSON to write.</param>
 public override void WriteRaw(string json)
 {
     throw JsonWriterException.Create(this, "Cannot write raw JSON as BSON.", null);
 }
예제 #3
0
 /// <summary>
 /// Writes out a comment <code>/*...*/</code> containing the specified text.
 /// </summary>
 /// <param name="text">Text to place inside the comment.</param>
 public override void WriteComment(string text)
 {
     throw JsonWriterException.Create(this, "Cannot write JSON comment as BSON.", null);
 }