Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BsonWriter"/> class.
 /// </summary>
 /// <param name="writer">The writer.</param>
 public BsonWriter(BinaryWriter writer)
 {
   ValidationUtils.ArgumentNotNull(writer, "writer");
   _writer = new BsonBinaryWriter(writer);
 }
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);
 }
 /// <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(new BinaryWriter(stream));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BsonWriter"/> class.
 /// </summary>
 /// <param name="writer">The writer.</param>
 public BsonWriter(BinaryWriter writer)
 {
     ValidationUtils.ArgumentNotNull(writer, "writer");
     _writer = new BsonBinaryWriter(writer);
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BsonDataWriter"/> class.
 /// </summary>
 /// <param name="writer">The <see cref="BinaryWriter"/> to write to.</param>
 public BsonDataWriter(BinaryWriter writer)
 {
     ValidationUtils.ArgumentNotNull(writer, nameof(writer));
     _writer = new BsonBinaryWriter(writer);
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BsonDataWriter"/> class.
 /// </summary>
 /// <param name="stream">The <see cref="Stream"/> to write to.</param>
 public BsonDataWriter(Stream stream)
 {
     ValidationUtils.ArgumentNotNull(stream, nameof(stream));
     _writer = new BsonBinaryWriter(new BinaryWriter(stream));
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Newtonsoft.Json.Bson.BsonWriter" /> class.
 /// </summary>
 /// <param name="writer">The writer.</param>
 public BsonWriter(BinaryWriter writer)
 {
     ValidationUtils.ArgumentNotNull((object)writer, nameof(writer));
     this._writer = new BsonBinaryWriter(writer);
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Newtonsoft.Json.Bson.BsonWriter" /> class.
 /// </summary>
 /// <param name="stream">The stream.</param>
 public BsonWriter(Stream stream)
 {
     ValidationUtils.ArgumentNotNull((object)stream, nameof(stream));
     this._writer = new BsonBinaryWriter(new BinaryWriter(stream));
 }
Esempio n. 9
0
 public BsonWriter(Stream stream)
 {
   ValidationUtils.ArgumentNotNull((object) stream, "stream");
   this._writer = new BsonBinaryWriter(new BinaryWriter(stream));
 }