AIMA.Core.Logic.Propositional.Parsing.Ast.Symbol.Equals C# (CSharp) Method

Equals() public method

public Equals ( Object o ) : bool
o Object
return bool
        public override bool Equals(Object o)
        {

            if (this == o)
            {
                return true;
            }
            if ((o == null) || !(o is Symbol))
            {
                return false;
            }
            Symbol sym = (Symbol)o;
            return (sym.getValue().Equals(getValue()));

        }