Exemple #1
0
 private INumberRounding <TNumber> GetInstance(Type numberType)
 {
     if (numberType == typeof(decimal))
     {
         numberRounding = (INumberRounding <TNumber>)(new DecimalRounding(Convert.ToDecimal(Value), RoundingConfiguration));
     }
     return(numberRounding);
 }
Exemple #2
0
 public NumberRounding() : base()
 {
     numberRounding = GetInstance(typeof(TNumber));
 }