DataDictionary.Rules.Action.checkValidExpression C# (CSharp) Method

checkValidExpression() public method

Indicates that the expression is valid for this IExpressionable
public checkValidExpression ( string expression ) : bool
expression string
return bool
        public bool checkValidExpression(string expression)
        {
            // ReSharper disable once RedundantAssignment
            bool retVal = false;

            Statement tree = new Parser().Statement(this, expression, true);
            retVal = tree != null;

            return retVal;
        }