示例#1
0
        public override bool Equals(Expression other)
        {
            if (!(other is RefVariableDeclarationExpression))
            {
                return(false);
            }
            RefVariableDeclarationExpression otherVar = other as RefVariableDeclarationExpression;

            return(this.Variable.Resolve() == otherVar.Variable.Resolve());
        }
示例#2
0
        public override Expression CloneExpressionOnly()
        {
            RefVariableDeclarationExpression result = new RefVariableDeclarationExpression(Variable, null);

            return(result);
        }