Decompile a method marked [DllImport] and you get almost nothing back: an extern signature, a reconstructed attribute, and no body. Decompile a method marked [LibraryImport] and you get a page of real C# — fixed blocks, pointer casts, a nested call. Same native call, wildly different decompiled...
Source: [Dev.to](https://dev.to/zero_heartbeat_06a3625d7a/how-source-generated-pinvoke-decompiles-5p5)