/// <summary> /// TJsonProtocol Constructor /// </summary> public TJsonProtocol(TClientTransport trans) : base(trans) { //throw new NotImplementedException("TJsonProtocol is not fully ready for usage"); Context = new JsonBaseContext(this); Reader = new LookaheadReader(this); }
/// <summary> /// Pop the last JSON context off the stack /// </summary> protected void PopContext() { Context = ContextStack.Pop(); }
/// <summary> /// Push a new JSON context onto the stack. /// </summary> protected void PushContext(JsonBaseContext c) { ContextStack.Push(Context); Context = c; }