C# Class MainModule.Calculator

Inheritance: ICalculator
Datei anzeigen Open project: xepher/uwp-wxbus

Public Methods

Method Description
Add ( int lhs, int rhs ) : int
Calculator ( ICalculatorAdd add, ICalculatorSub sub, ICalculatorMul mul, ICalculatorDiv div ) : System
Div ( int lhs, int rhs ) : int
Mul ( int lhs, int rhs ) : int
Run ( ) : void
Sub ( int lhs, int rhs ) : int

Method Details

Add() public method

public Add ( int lhs, int rhs ) : int
lhs int
rhs int
return int

Calculator() public method

public Calculator ( ICalculatorAdd add, ICalculatorSub sub, ICalculatorMul mul, ICalculatorDiv div ) : System
add ICalculatorAdd
sub ICalculatorSub
mul ICalculatorMul
div ICalculatorDiv
return System

Div() public method

public Div ( int lhs, int rhs ) : int
lhs int
rhs int
return int

Mul() public method

public Mul ( int lhs, int rhs ) : int
lhs int
rhs int
return int

Run() public method

public Run ( ) : void
return void

Sub() public method

public Sub ( int lhs, int rhs ) : int
lhs int
rhs int
return int