Clone() public method

Creates a clone of the context.
public Clone ( ) : JsonReaderContext
return JsonReaderContext
コード例 #1
0
 // 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;
 }
コード例 #2
0
 // 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;
 }
コード例 #3
0
 internal JsonReaderContext CloneContext()
 {
     return(context.Clone());
 }