InputBuffer.Add(string) - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki
Namespace: UtilityClassLibrary
Description: Adds input to buffer.
Parameters | Description |
---|---|
input<string> | input to add to buffer |
Returns | Description |
---|---|
void | this method does not return anything |
Examples:
var buffer = new InputBuffer();
buffer.Add("1"); //now contains "1"
buffer.Add("9"); //now contains "19"
buffer.Add("."); //now contains "19."
buffer.Add("."); //still contains "19." as duplicate decimal point is not allowed
buffer.Add("5"); //now contains "19.5"