Exemple #1
0
 public override bool Equals(object obj)
 {
     if (obj is TimePredicate)
     {
         TimePredicate tp = (TimePredicate)obj;
         if (tp.Time == Time)
         {
             return(tp.Predicate.Equals(Predicate));
         }
         return(false);
     }
     return(false);
 }
Exemple #2
0
        public override Predicate Negate()
        {
            TimePredicate tpNegate = new TimePredicate(Predicate.Negate(), Time);

            return(tpNegate);
        }