/// <summary> /// Perform the operation on the LHS and RHS numbers /// </summary> public virtual void PerformOperation() { try { // LHS is presently stored, and RHS is the number currently in the buffer Number.OverrideValue(op.PerformOperation(lhs, Number.ValueDecimal())); } catch (Exception) { // If there was an exception with the input, the calculation failed Number.MarkNaN(); } op = new DummyOperator(); }