Esempio n. 1
0
 public BsonWriter(BinaryWriter writer)
 {
     ValidationUtils.ArgumentNotNull((object)writer, nameof(writer));
     this._writer = new BsonBinaryWriter(writer);
 }
Esempio n. 2
0
 public BsonWriter(Stream stream)
 {
     ValidationUtils.ArgumentNotNull((object)stream, nameof(stream));
     this._writer = new BsonBinaryWriter(new BinaryWriter(stream));
 }