public override CalculatorContext Invoke(CalculatorContext ctx) { var newCtx = ctx.Copy(); newCtx.Reset(); return(newCtx); }
public override CalculatorContext GetContext() => _hasNewOperand?_tempCtx.Copy() : Ctx.Copy();