예제 #1
0
        public double Get()
        {
            ICalculo soma = serviceProvider.GetService <ICalculo>();

            return(soma.Calcular(100, 200));
        }
 public double GetSoma(double a, double b) => _calculo.Calcular(a, b);
예제 #3
0
 public double Get(double a, double b) => calculo.Calcular(a, b);