Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BsonWriter"/> class.
 /// </summary>
 /// <param name="stream">The stream.</param>
 public BsonWriter(Stream stream)
 {
     ValidationUtils.ArgumentNotNull(stream, "stream");
     _writer = new BsonBinaryWriter(stream);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BsonWriter"/> class.
 /// </summary>
 /// <param name="stream">The stream.</param>
 public BsonWriter(Stream stream)
 {
   ValidationUtils.ArgumentNotNull(stream, "stream");
   _writer = new BsonBinaryWriter(stream);
 }