public static decimal CalculateInterest(CalculateInteres calcInterest) { decimal interestAmount = calcInterest.loanAmount * calcInterest.lonRate * calcInterest.loanTerm; #if DEBUG LogLine("Intrest Amount : ", interestAmount.ToString("C")); #endif return(interestAmount); }
static void Main(string[] args) { TestCast test = new TestCast(); TestCast.DoWorkd(test); //Product pr = new Product(); var result = Product.ValidatesRes(); CalculateInteres calcInterest = new CalculateInteres(1300.0M, 3, 44.0M); CalculateInteres.Calculate(2.22F); CalculateInteres.CalculateInterest(calcInterest); Console.Read(); }