Clone() public method

Creates a clone of the context.
public Clone ( ) : BsonBinaryReaderContext
return BsonBinaryReaderContext
Esempio n. 1
0
 // constructors
 internal BsonBinaryReaderBookmark(
     BsonReaderState state,
     BsonType currentBsonType,
     string currentName,
     BsonBinaryReaderContext context,
     int position)
     : base(state, currentBsonType, currentName)
 {
     _context  = context.Clone();
     _position = position;
 }
Esempio n. 2
0
 // constructors
 internal BsonBinaryReaderBookmark(
     BsonReaderState state,
     BsonType currentBsonType,
     string currentName,
     BsonBinaryReaderContext context,
     int position)
     : base(state, currentBsonType, currentName)
 {
     _context = context.Clone();
     _position = position;
 }
Esempio n. 3
0
 // internal methods
 internal BsonBinaryReaderContext CloneContext()
 {
     return(_context.Clone());
 }