MongoDB.Bson.LazyBsonDocument.DeserializeLazyBsonDocument C# (CSharp) Method

DeserializeLazyBsonDocument() private method

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