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)); }
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)); }