MemoryStorage - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki

Namespace: StorageClassLibrary
Implements: IMemoryStorage

Description: Stores, removes and manipulates stored decimal values in calculator memory.

Constructors Usage
MemoryStorage() Initializes an instance of MemoryStorage class
MemoryStorage(IEnumerable<decimal>) Initializes an instance of MemoryStorage class with stored data
Properties Usage
Last<decimal> get most recent value stored in storage
Size<int> get total number of values currently held in storage
Values<decimal[]> get a copy of all values currently held in storage
Methods Usage
Clear() remove all values held in storage
Minus(int, decimal) subtract arbitrary value from value at specified index
Plus(int, decimal) add arbitrary value to value at specified index
Remove(int) remove value at specified index
Retrieve(int) get value at specified index
Store(decimal) store arbitrary value in storage
⚠️ **GitHub.com Fallback** ⚠️