/// <summary> /// Returns true if MarketChange instances are equal /// </summary> /// <param name="other">Instance of MarketChange to be compared</param> /// <returns>Boolean</returns> public bool Equals(MarketChange other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return((Rc == other.Rc || Rc != null && Rc.SequenceEqual(other.Rc)) && (Img == other.Img || Img != null && Img.Equals(other.Img)) && (Tv == other.Tv || Tv != null && Tv.Equals(other.Tv)) && (Con == other.Con || Con != null && Con.Equals(other.Con)) && (MarketDefinition == other.MarketDefinition || MarketDefinition != null && MarketDefinition.Equals(other.MarketDefinition)) && (Id == other.Id || Id != null && Id.Equals(other.Id))); }