Clone() public method

Creates a clone of the context.
public Clone ( ) : JsonReaderContext
return JsonReaderContext
 // constructors
 internal JsonReaderBookmark(BsonReaderState state, BsonType currentBsonType, string currentName, JsonReaderContext context, JsonToken currentToken, BsonValue currentValue, JsonToken pushedToken, int position)
     : base(state, currentBsonType, currentName)
 {
     this.context      = context.Clone();
     this.currentToken = currentToken;
     this.currentValue = currentValue;
     this.pushedToken  = pushedToken;
     this.position     = position;
 }
 // constructors
 internal JsonReaderBookmark(BsonReaderState state, BsonType currentBsonType, string currentName, JsonReaderContext context, JsonToken currentToken, BsonValue currentValue, JsonToken pushedToken, int position)
     : base(state, currentBsonType, currentName)
 {
     _context = context.Clone();
     _currentToken = currentToken;
     _currentValue = currentValue;
     _pushedToken = pushedToken;
     _position = position;
 }
 internal JsonReaderContext CloneContext()
 {
     return(context.Clone());
 }