Пример #1
0
        private static Expression CreateAnyMethod1Expression(Expression p, PropertyInfo propInfo, FilterInfo filterInfo)
        {
            var(_, propType) = propInfo.PropertyType.GetUnderlyingTypeTypeInfo();
            var subType         = propType.GetEnumerableSubType();
            var innerExpression = filterInfo.CreatePredicate(subType);
            var propExpression  = Expression.Property(p, propInfo);

            return(Expression.Call(AnyMethod1.MakeGenericMethod(subType), propExpression, innerExpression));
        }