Ejemplo n.º 1
0
 public override bool Equals(object other)
 {
     if (other is IFixedRule)
     {
         IFixedRule r = (IFixedRule)other;
         return(r.Name.Equals(Name) && r.Current.Equals(Current));
     }
     else
     {
         IRule rr = (IRule)other;
         return(rr.Name.Equals(Name) && rr[offset].Equals(Current));
     }
 }
Ejemplo n.º 2
0
        public override bool Equals(object other)
        {
            IFixedRule r = (IFixedRule)other;

            return(r.Name.Equals(Name) && r.Current.Equals(Current));
        }