MongoDB.Bson.RawBsonArray.DeserializeRawBsonDocument C# (CSharp) Method

DeserializeRawBsonDocument() private method

private DeserializeRawBsonDocument ( MongoDB.Bson.IO.BsonBinaryReader bsonReader ) : RawBsonDocument
bsonReader MongoDB.Bson.IO.BsonBinaryReader
return RawBsonDocument
        private RawBsonDocument DeserializeRawBsonDocument(BsonBinaryReader bsonReader)
        {
            var slice = bsonReader.ReadRawBsonDocument();
            var nestedDocument = new RawBsonDocument(slice);
            _disposableItems.Add(nestedDocument);
            return nestedDocument;
        }