public static void InternMethod(string module, string pn, AnyMethod d) { if (!PlEngine.SaveRegisterForeign(module, pn.ToString(), -1, d)) { return; } InternMethod(module, pn, d.Method); }
static MethodCallExpression BuildAnyCall( MemberExpression ienumerableMember, Type relatedType, BaseFilterQuery filter ) { var minfo = AnyPredicate; var predicate = minfo .MakeGenericMethod(relatedType) .Invoke(null, new object[] { relatedType, filter }) as Expression; //var predicate = BuildPredicate<TSource>(relatedType, filter); var any = AnyMethod .MakeGenericMethod(relatedType); return(Expression.Call( null, any, ienumerableMember, predicate)); }