---
title: "Discussion on \"How source-generated P/Invoke decompiles\" | Hashnode"
description: "Discussion on \"How source-generated P/Invoke decompiles\". 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"
url: "https://hashnode.com/posts/how-source-generated-pinvoke-decompiles/6afb6266be28692673683c48"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How source-generated P/Invoke decompiles](https://delta1labs.hashnode.dev/how-source-generated-pinvoke-decompiles?utm_source=hashnode&utm_medium=feed)

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

Nov 16 · 7 min read · delta1labs.hashnode.dev  
Updated 6h ago  
Read the article

-   [#interop](https://hashnode.com/tag/interop)
-   [#glass](https://hashnode.com/tag/glass)

## Written by

[Zero Heartbeat](https://hashnode.com/@clustron)

@clustron

  
[View profile](https://hashnode.com/@clustron)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
