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: Programmazione sicura
Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Community-Hinweise zur Meldung
Briefing di sicurezza Gratuito · disdetta in 1 clic
Intelligence Digest — gratuito
Ogni giorno le notizie di sicurezza più importanti · annullabile in qualsiasi momento
💬 Discussione della community e commenti
Avvia la discussione nel flusso broadcast della Social Chat oppure invia qui sopra un contributo esperto tramite il modulo di integrazione.