/// <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); }
/// <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="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); }
/// <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)); }
/// <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); }
/// <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)); }
public BsonWriter(Stream stream) { ValidationUtils.ArgumentNotNull((object) stream, "stream"); this._writer = new BsonBinaryWriter(new BinaryWriter(stream)); }