Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
Esempio n. 1
0
        public override bool Equals(ATNConfig other)
        {
            if (this == other)
            {
                return(true);
            }
            else if (!(other is LexerATNConfig))
            {
                return(false);
            }

            LexerATNConfig lexerOther = (LexerATNConfig)other;

            if (passedThroughNonGreedyDecision != lexerOther.passedThroughNonGreedyDecision)
            {
                return(false);
            }

            if (!(lexerActionExecutor == null ? lexerOther.lexerActionExecutor == null : lexerActionExecutor.Equals(lexerOther.lexerActionExecutor)))
            {
                return(false);
            }

            return(base.Equals(other));
        }