public override bool Equals(System.Object otherBand) { if (!(otherBand is Band)) { return(false); } else { Band newBand = (Band)otherBand; bool idEquality = this.GetId() == newBand.GetId(); bool descriptionEquality = this.GetDescription() == newBand.GetDescription(); bool performancedateEquality = this.GetPerformanceDate() == newBand.GetPerformanceDate(); return(idEquality && descriptionEquality && performancedateEquality); } }
public override bool Equals(System.Object otherBand) { if (!(otherBand is Band)) { return(false); } else { Band newBand = (Band)otherBand; bool idEquality = this.GetId() == newBand.GetId(); bool descriptionEquality = this.GetDescription() == newBand.GetDescription(); // bool dueDateEquality = this.GetDate() == newItem.GetDate(); // We no longer compare Items' categoryIds in a categoryEquality bool here. return(idEquality && descriptionEquality); } }