示例#1
0
 /// <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);
 }
示例#2
0
 public SmileWriter(Stream stream)
 {
     ValidationUtils.ArgumentNotNull(stream, "stream");
     _writer = new SmileBinaryWriter(new BinaryWriter(stream));
 }