InputBuffer - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki

Namespace: UtilityClassLibrary
Implements: IInputBuffer

Description: Stores input data for future use.

Constructors Usage
InputBuffer() Initializes an instance of InputBuffer class
Properties Usage
Content<string> buffer content represented as string
IsDecimal<bool> indicate if the buffer holds a decimal value
IsEmpty<bool> indicate if the buffer is empty
IsNegative<bool> indicate if the buffer holds a negative value
Value<decimal> numeric value parsed from buffer content
Methods Usage
Add(string) add input to buffer
Clear() clear buffer content
Negate() negate the value held in buffer
Set(string) overwrite buffer content
Undo() revoke most recent buffer modification
⚠️ **GitHub.com Fallback** ⚠️