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 Gratis · 1-klik uitschrijven
Intelligence Digest gratis
Dagelijks het belangrijkste beveiligingsnieuws · kan op elk moment worden opgehaald
💬 Communitydiscussie & reacties
Start de discussie in de Social Chat broadcaststream of dien hierboven een vakbijdrage in via het aanvulformulier.