Exemplo n.º 1
0
        public static Type GetPredicateExpressionParameter(Type expressionType)
        {
            var expressionImplementationType = CsUtility.GetUnderlyingGenericType(expressionType, typeof(Expression <>));

            if (expressionImplementationType == null)
            {
                return(null);
            }

            var funcType = expressionImplementationType.GetGenericArguments().First();

            return(GetPredicateFunctionParameter(funcType));
        }