We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new ref Struct have special custom attribute called "IsRefLike" that differentiate them from normal structs https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.2/span-safety#metadata-representation-of-ref-like-structs
Additionally System.Type has property called IsByRefLike which indicates ref struct https://learn.microsoft.com/en-us/dotnet/api/system.type.isbyreflike?view=net-6.0
Add Property called "IsRefLike" or "IsByRefLike" that checks if IsRefLike attribute is present on certain Type
No response
The text was updated successfully, but these errors were encountered:
Adding a IsByRefLike property would make the most sense to me, to stay consistent with other APIs.
IsByRefLike
It can probably be implemented in a similar fashion as the IsReadOnly property (See TypeDefinition.cs#L497).
IsReadOnly
We could maybe include this in the upcoming 5.0.0 release as well.
Sorry, something went wrong.
No branches or pull requests
Problem Description
new ref Struct have special custom attribute called "IsRefLike" that differentiate them from normal structs
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.2/span-safety#metadata-representation-of-ref-like-structs
Additionally System.Type has property called IsByRefLike which indicates ref struct
https://learn.microsoft.com/en-us/dotnet/api/system.type.isbyreflike?view=net-6.0
Proposal
Add Property called "IsRefLike" or "IsByRefLike" that checks if IsRefLike attribute is present on certain Type
Alternatives
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: