public static bool ContainsInternals(Expression node) { var visitor = new InternalsFinderVisitor(); visitor.Visit(node); return visitor.needsAccessToInternals; }
internal static bool ExpressionNeedsAccessToInternals(Expression expression) { // This doesn't find all possible cases, but get's us close enough. return(InternalsFinderVisitor.ContainsInternals(expression)); }