コード例 #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);
 }
コード例 #2
0
        public override Predicate Negate()
        {
            TimePredicate tpNegate = new TimePredicate(Predicate.Negate(), Time);

            return(tpNegate);
        }