InvokeArgument() 공개 정적인 메소드

public static InvokeArgument ( ) : Exception
리턴 System.Exception
예제 #1
0
        /// <include file='doc\DataFilter.uex' path='docs/doc[@for="DataFilter.Invoke2"]/*' />
        /// <devdoc>
        ///    <para>[To be supplied.]</para>
        /// </devdoc>
        public virtual bool Invoke(DataRow row, DataRowVersion version)
        {
            if (expr == null)
            {
                return(true);
            }

            if (row == null)
            {
                throw ExprException.InvokeArgument();
            }
            object val = expr.Eval(row, version);
            bool   result;

            try {
                result = ToBoolean(val);
            }
            catch (Exception) {
                throw ExprException.FilterConvertion(Expression);
            }
            return(result);
        }
예제 #2
0
        public bool Invoke(DataRow row, DataRowVersion version)
        {
            bool flag;

            if (this.expr == null)
            {
                return(true);
            }
            if (row == null)
            {
                throw ExprException.InvokeArgument();
            }
            object obj2 = this.expr.Eval(row, version);

            try
            {
                flag = ToBoolean(obj2);
            }
            catch (EvaluateException)
            {
                throw ExprException.FilterConvertion(this.Expression);
            }
            return(flag);
        }
예제 #3
0
 /// <include file='doc\DataFilter.uex' path='docs/doc[@for="DataFilter.Invoke"]/*' />
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public virtual bool Invoke()
 {
     throw ExprException.InvokeArgument();
 }