/// <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); }
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); }
/// <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(); }