I'm trying to make this scanner which blocks the use of external code in BepInEx mods. Due to it being run before any assemblies have been resolved, there is a time where calling Resolve() on a MethodReference may throw a AssemblyResolutionException.
I was wondering if it was possible to get IsPInvokeImpl (or something similar that can tell me if it's an extern method), without resolving the MethodReference 🤔