/// <summary> /// Returns true if EquipmentType instances are equal /// </summary> /// <param name="other">Instance of EquipmentType to be compared</param> /// <returns>Boolean</returns> public bool Equals(EquipmentType other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( IsDumpTruck == other.IsDumpTruck || IsDumpTruck.Equals(other.IsDumpTruck) ) && ( BlueBookSection == other.BlueBookSection || BlueBookSection != null && BlueBookSection.Equals(other.BlueBookSection) ) && ( NumberOfBlocks == other.NumberOfBlocks || NumberOfBlocks.Equals(other.NumberOfBlocks) ) && ( BlueBookRateNumber == other.BlueBookRateNumber || BlueBookRateNumber != null && BlueBookRateNumber.Equals(other.BlueBookRateNumber) ) && ( MaximumHours == other.MaximumHours || MaximumHours != null && MaximumHours.Equals(other.MaximumHours) ) && ( ExtendHours == other.ExtendHours || ExtendHours != null && ExtendHours.Equals(other.ExtendHours) ) && ( MaxHoursSub == other.MaxHoursSub || MaxHoursSub != null && MaxHoursSub.Equals(other.MaxHoursSub) )); }