public override bool Equals(object obj)
 {
     if (obj is null)
     {
         return(false);
     }
     if (!(obj is DeterministicState deterministicState))
     {
         return(false);
     }
     return(deterministicState.Origin == Origin && DottedRuleSet.Equals(deterministicState.DottedRuleSet));
 }
Exemple #2
0
        public override bool Equals(object obj)
        {
            if (((object)obj) == null)
            {
                return(false);
            }
            var deterministicState = obj as DeterministicState;

            if (((object)deterministicState) == null)
            {
                return(false);
            }
            return(deterministicState.Origin == Origin && DottedRuleSet.Equals(deterministicState.DottedRuleSet));
        }