Esempio n. 1
0
 public Calculator(CalculatorParameter calculatorParameter)
 {
     this.calculatorParameter = calculatorParameter;
 }
Esempio n. 2
0
 public AddMethod(CalculatorParameter calculatorParameter)
 {
     // an example that shows that you can pass parameters from dependency injection to consructor.
     this.calculatorParameter = calculatorParameter ?? throw new ArgumentNullException(nameof(calculatorParameter));
 }