示例#1
0
 public override string ToString()
 {
     return(string.Format(
                "[{0} for loan {1} on {2}]",
                PaidAmount.ToString("C2", ms_oCulture),
                LoanID.ToString("N0"),
                Date.ToString("MMMM d yyyy", ms_oCulture)
                ));
 }         // ToString
		/// <summary>
		/// Serves as a hash function for a particular type. 
		/// </summary>
		/// <returns>
		/// A hash code for the current <see cref="T:System.Object"/>.
		/// </returns>
		public override int GetHashCode() {
			return LoanID.GetHashCode() ^ StartDate.GetHashCode() ^ EndDate.GetHashCode() ^ ActivationDate.GetHashCode() ^ DeactivationDate.GetHashCode();
		}