---
title: "Discussion on \"How ref fields in a ref struct decompile\" | Hashnode"
description: "Discussion on \"How ref fields in a ref struct decompile\". Decompile a modern ref struct and you can hit a field whose type is int32& — a field that holds a reference, not a value. Before C# 11 that was impossible: the runtime flatly rejected a byref-typed fi"
url: "https://hashnode.com/posts/how-ref-fields-in-a-ref-struct-decompile/6b0b3388959b5acd4ee414ef"
---

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

Discussion

# [How ref fields in a ref struct decompile](https://delta1labs.hashnode.dev/how-ref-fields-in-a-ref-struct-decompile?utm_source=hashnode&utm_medium=feed)

Decompile a modern ref struct and you can hit a field whose type is int32& — a field that holds a reference, not a value. Before C# 11 that was impossible: the runtime flatly rejected a byref-typed fi

3h ago · 10 min read · delta1labs.hashnode.dev  
Read the article

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

## Written by

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

@clustron

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
