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: Programmation sécurisée
Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Community-Hinweise zur Meldung
Briefing sécurité Gratuit · désabonnement en 1 clic
Intelligence Digest — gratuit
Chaque jour, les principales actualités sécurité · résiliable à tout moment
💬 Discussion communautaire et commentaires
Lancez la discussion dans le flux diffusé du Social Chat ou proposez ci-dessus une contribution experte via le formulaire de complément.