private RawBsonDocument DeserializeRawBsonDocument(BsonBinaryReader bsonReader)
        {
            var slice          = bsonReader.ReadRawBsonDocument();
            var nestedDocument = new RawBsonDocument(slice);

            _disposableItems.Add(nestedDocument);
            return(nestedDocument);
        }
Пример #2
0
 private RawBsonDocument DeserializeRawBsonDocument(BsonBinaryReader bsonReader)
 {
     var slice = bsonReader.ReadRawBsonDocument();
     var nestedDocument = new RawBsonDocument(slice);
     _disposableItems.Add(nestedDocument);
     return nestedDocument;
 }