public override bool Equals(object obj) { if (base.Equals(obj)) { RegulatingControl x = (RegulatingControl)obj; return(x.Discrete == this.Discrete && x.Mode == this.Mode && x.MonitoredPhase == this.MonitoredPhase && x.TargetRange == this.TargetRange && x.TargetValue == this.TargetValue && x.Terminal == this.Terminal); } else { return(false); } }
public override bool Equals(object obj) { if (base.Equals(obj)) { RegulatingControl x = (RegulatingControl)obj; return(x.discrete == this.discrete && x.mode == this.mode && x.monitoredPhase == this.monitoredPhase && x.targetRange == this.targetRange && x.targetValue == this.targetValue && CompareHelper.CompareLists(x.regulationSchedule, this.regulationSchedule)); } else { return(false); } }