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); }
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)); }
public override string ToString() { return("Tweet by " + Author.Name + " on " + DatePosted.ToShortDateString() + " content: " + Content); }
/// <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())); }