public WriteStartConstructor ( string name ) : void | ||
name | string | The name of the constructor. |
리턴 | void |
public void WriteConstructor() { ExceptionAssert.Throws<JsonWriterException>(() => { MemoryStream ms = new MemoryStream(); BsonWriter writer = new BsonWriter(ms); writer.WriteStartArray(); writer.WriteStartConstructor("fail"); }, "Cannot write JSON constructor as BSON. Path ''."); }
public void WriteConstructor() { MemoryStream ms = new MemoryStream(); BsonWriter writer = new BsonWriter(ms); writer.WriteStartArray(); writer.WriteStartConstructor("fail"); }