Is it possible to check IsPInvokeImpl on a method without needing to resolve the MethodReference? #969
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 aMethodReferencemay throw aAssemblyResolutionException.I was wondering if it was possible to get IsPInvokeImpl (or something similar that can tell me if it's an
externmethod), without resolving theMethodReference🤔