A ref field is the first C# feature that lets a field hold a reference instead of a value , and it is the first that forced a change to the runtime's own rules about what a field signature may contain. Before . NET 7 a field could not be a managed pointer; the runtime rejected the metadata.

Source: [Dev.to](https://dev.to/zero_heartbeat_06a3625d7a/decompiling-ref-fields-and-scoped-how-c-11-ref-structs-look-in-il-fcm)

Sponsored