You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When taking pointers to any managed type (classes, ref structs, and structs with object members), it is supposed to generate CS8500:

These restricted types (
TypedReference
,ArgIterator
,RuntimeArgumentHandle
) are managed types and thus should generate the above warning.Also, according to https://github.com/dotnet/csharplang/blob/main/proposals/csharp-11.0/low-level-struct-improvements.md#sunset-restricted-types, in the future these types may be viewed as ref structs, therefore they should give the warning now so users don't start randomly getting warnings:

Beta Was this translation helpful? Give feedback.
All reactions