/// <summary>
 /// Returns a string that represents the current object.
 /// </summary>
 /// <returns>
 /// A string that represents the current object.
 /// </returns>
 public override string ToString()
 {
     return(string.Format(
                "{0,2}: on {1}: {2} = p{3} + i{4} +f{5} (at {6})",
                Position,
                Date.DateStr(),
                Amount.ToString("C2", Culture),
                Principal.ToString("C2", Culture),
                AccruedInterest.ToString("C2", Culture),
                Fee,
                InterestRate.ToString("P2", Culture)
                ));
 }         // ToString
示例#2
0
 /// <summary>
 /// Returns a string that represents the current object.
 /// </summary>
 /// <returns>
 /// A string that represents the current object.
 /// </returns>
 public override string ToString()
 {
     return(string.Format(
                "scenario '{6}', loan is closed: {1}, late: {2}, amount: {3}, " +
                "saving {4}, balance: {5}, accrued interest: {7} ({0})",
                IsError ? "error" : "no error",
                LoanIsClosed ? "yes" : "no",
                IsLate ? "yes" : "no",
                Amount.ToString("C2", Library.Instance.Culture),
                SavedAmount.ToString("C2", Library.Instance.Culture),
                Balance.ToString("C2", Library.Instance.Culture),
                ScenarioName,
                AccruedInterest.ToString("C2", Library.Instance.Culture)
                ));
 } // ToString