public override int GetHashCode()
        {
            var hashCode = 1253119681;

            hashCode = hashCode * -1521134295 + Type.GetHashCode();
            hashCode = hashCode * -1521134295 + DatePosted.GetHashCode();
            hashCode = hashCode * -1521134295 + TransactionAmount.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Memo);

            return(hashCode);
        }
예제 #2
0
 public override string ToString()
 {
     return(String.Format("{0} | {1} | {2} | {3}", TransactionAccounts.Item1.Name + "," + transactionAccounts.Item2.Name, transactionAccounts.Item1.Amount + "," + transactionAccounts.Item2.Amount, DatePosted.ToString(), Description));
 }
예제 #3
0
파일: Tweet.cs 프로젝트: RodH257/RetrEave
 public override string ToString()
 {
     return("Tweet by " + Author.Name + " on " + DatePosted.ToShortDateString() + " content: " + Content);
 }
예제 #4
0
 /// <summary>
 /// Gets a string representation of this news entry.
 /// </summary>
 /// <returns>A string of the date's long date string.</returns>
 public override string ToString()
 {
     return(string.Concat(DatePosted.ToShortDateString(), " ", DatePosted.ToShortTimeString()));
 }