System.Data.ExprException.NonConstantArgument C# (CSharp) Метод

NonConstantArgument() публичный статический Метод

public static NonConstantArgument ( ) : Exception
Результат Exception
        public static Exception NonConstantArgument()
        {
            return _Eval(SR.Expr_NonConstantArgument);
        }

Usage Example

Пример #1
0
        internal override ExpressionNode Optimize()
        {
            for (int i = 0; i < _argumentCount; i++)
            {
                _arguments[i] = _arguments[i].Optimize();
            }

            Debug.Assert(_info > -1, "Optimizing unbound function "); // default info is -1, it means if not bounded, it should be -1, not 0!!

            if (s_funcs[_info]._id == FunctionId.In)
            {
                // we can not optimize the in node, just check that it has all constant arguments

                if (!IsConstant())
                {
                    throw ExprException.NonConstantArgument();
                }
            }
            else
            {
                if (IsConstant())
                {
                    return(new ConstNode(table, ValueType.Object, Eval(), false));
                }
            }
            return(this);
        }
All Usage Examples Of System.Data.ExprException::NonConstantArgument