public override bool Equals(object x) { BasicIntervalSchedule b = (BasicIntervalSchedule)x; if (base.Equals(x)) { return(b.StartTime == startTime && b.V1Multiplier == v1Multiplier && b.V1Unit == v1Unit && b.V2Multiplier == v2Multiplier && b.V2Unit == v2Unit); } return(false); }
public override bool Equals(object x) { if (base.Equals(x)) { BasicIntervalSchedule bis = (BasicIntervalSchedule)x; return((bis.StartTime == this.StartTime) && (bis.Value1Multiplier == this.Value1Multiplier) && (bis.Value1Unit == this.Value1Unit) && (bis.Value2Multiplier == this.Value2Multiplier) && (bis.Value2Unit == this.Value2Unit)); } else { return(false); } }
public override bool Equals(object obj) { if (base.Equals(obj)) { BasicIntervalSchedule x = (BasicIntervalSchedule)obj; return(x.startTime == this.startTime && x.value1Unit == this.value1Unit ); } else { return(false); } }