public void FindByType_RunTest(LambdaExpression expr) { var list = LambdaUtils.FindByType <MemberExpression>(expr); Assert.True(list.Count > 0); }
/// <summary>尋找 Lambda Expression tree 中指定類型</summary> public static List <T> FindByType <T>(this Expression expr) where T : Expression { return(LambdaUtils.FindByType <T>(expr)); }