public override bool Equals(object x)
        {
            IrregularTimePoint p = (IrregularTimePoint)x;

            if (base.Equals(x))
            {
                return(p.IntervalSchedule == intervalSchedule && p.Time == time && p.Value1 == value1 && p.Value2 == value2);
            }
            return(false);
        }
Esempio n. 2
0
 public override bool Equals(object x)
 {
     if (base.Equals(x))
     {
         IrregularTimePoint itp = (IrregularTimePoint)x;
         return((itp.Time == this.Time) && (itp.Value1 == this.Value1) && (itp.Value2 == this.Value2) && (itp.IntervalSchedule == this.IntervalSchedule));
     }
     else
     {
         return(false);
     }
 }