コード例 #1
0
ファイル: ExpressionFilter.cs プロジェクト: jrgcubano/zetbox
 /// <summary>
 /// Checks if the given Expression is legal.
 /// </summary>
 /// <param name="e">Expression</param>
 /// <param name="list">Out: List of illegal Expressions</param>
 /// <returns>true, if the expression is legal. Otherwise false.</returns>
 public static bool IsLegal(this Expression e, out List<IllegalExpression> list)
 {
     CheckLegalExpression chk = new CheckLegalExpression();
     chk.Visit(e);
     list = chk.IllegalExpression;
     return chk.IsLegal;
 }
コード例 #2
0
        /// <summary>
        /// Checks if the given Expression is legal.
        /// </summary>
        /// <param name="e">Expression</param>
        /// <param name="list">Out: List of illegal Expressions</param>
        /// <returns>true, if the expression is legal. Otherwise false.</returns>
        public static bool IsLegal(this Expression e, out List <IllegalExpression> list)
        {
            CheckLegalExpression chk = new CheckLegalExpression();

            chk.Visit(e);
            list = chk.IllegalExpression;
            return(chk.IsLegal);
        }