コード例 #1
0
        public double?TotalInterest()
        {
            if (_totalInterest == null)
            {
                _totalInterest = CalculateInterest.Calculate(Wallets);
            }

            return(_totalInterest);
        }
コード例 #2
0
        public double?TotalInterest()
        {
            if (_totalInterest == null)
            {
                _totalInterest = CalculateInterest.Calculate(InterestRate(), _balance);
            }

            return(_totalInterest);
        }