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