private bool Equals(Stock other) { return(string.Equals(Ticker, other.Ticker, StringComparison.InvariantCultureIgnoreCase) && Shares.Equals(other.Shares) && PurchasePrice.Equals(other.PurchasePrice) && string.Equals(PurchaseDate, other.PurchaseDate, StringComparison.InvariantCultureIgnoreCase)); }