Calculator Class

Represents a classic calculator.

Definition

Namespace: ClassicCalculator
Assembly: ClassicCalculator (in ClassicCalculator.dll) Version: 1.0.0+5cef018da377eef51dd690d3240ce68b7f7e05df
C#
public class Calculator : ICalculator
Inheritance
Object    Calculator
Implements
ICalculator

Constructors

Calculator Initializes a new instance of the Calculator class.

Properties

DisplayLength Gets the configured length of the display, i.e. the number of digits that may be displayed.
DisplayValue Gets the current display value of the calculator.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
PressButton Simulates pressing a button on the calculator.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

MaxDisplayLength The maximum possible length of the display, i.e. the number of digits that may be displayed.

See Also