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)); } }
public override bool Equals(object other) { IFixedRule r = (IFixedRule)other; return(r.Name.Equals(Name) && r.Current.Equals(Current)); }