示例#1
0
        public void FindByType_RunTest(LambdaExpression expr)
        {
            var list = LambdaUtils.FindByType <MemberExpression>(expr);

            Assert.True(list.Count > 0);
        }
示例#2
0
 /// <summary>尋找 Lambda Expression tree 中指定類型</summary>
 public static List <T> FindByType <T>(this Expression expr) where T : Expression
 {
     return(LambdaUtils.FindByType <T>(expr));
 }