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 field, and the one type that needed one, Span<T>, smuggled it in through an internal intrinsic. C# 11 made ref fields a first-class language... Weiterlesen: How ref fields in a ref struct decompile
Intelligence View
⚡ tsecurity.de Intelligence
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 …
Quelle & Fakten · 1 Min. Lesezeit
Quelle: DEV Community (dev.to)
Rubrik: Sichere Programmierung
Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Community-Hinweise zur Meldung
Security Briefing Bezpłatnie · Wypisanie 1 kliknięciem
Intelligence Digest - bezpłatnie
Codziennie najważniejsze wiadomości bezpieczeństwa · można pobrać w każdej chwili
💬 Dyskusja społeczności i komentarze
Rozpocznij dyskusję w strumieniu transmisji Social Chat lub prześlij wyżej wkład ekspercki przez formularz uzupełnień.