/// <summary> /// Initializes a new instance of the <see cref="BsonWriter"/> class. /// </summary> /// <param name="writer">The writer.</param> public SmileWriter(BinaryWriter writer) { ValidationUtils.ArgumentNotNull(writer, "writer"); _writer = new SmileBinaryWriter(writer); }
public SmileWriter(Stream stream) { ValidationUtils.ArgumentNotNull(stream, "stream"); _writer = new SmileBinaryWriter(new BinaryWriter(stream)); }