public WriteComment ( string text ) : void | ||
text | string | Text to place inside the comment. |
리턴 | void |
public void WriteComment() { ExceptionAssert.Throws<JsonWriterException>(() => { MemoryStream ms = new MemoryStream(); BsonWriter writer = new BsonWriter(ms); writer.WriteStartArray(); writer.WriteComment("fail"); }, "Cannot write JSON comment as BSON. Path ''."); }
public void WriteComment() { MemoryStream ms = new MemoryStream(); BsonWriter writer = new BsonWriter(ms); writer.WriteStartArray(); writer.WriteComment("fail"); }