public WriteRawValue ( string json ) : void | ||
json | string | The raw JSON to write. |
return | void |
public void WriteRawValue() { ExceptionAssert.Throws<JsonWriterException>(() => { MemoryStream ms = new MemoryStream(); BsonWriter writer = new BsonWriter(ms); writer.WriteStartArray(); writer.WriteRawValue("fail"); }, "Cannot write raw JSON as BSON. Path ''."); }
public void WriteRawValue() { MemoryStream ms = new MemoryStream(); BsonWriter writer = new BsonWriter(ms); writer.WriteStartArray(); writer.WriteRawValue("fail"); }