Make use of .NET 7's new Nullable.GetValueRefOrDefaultRef()
#498
Labels
feature request 📬
A request for new changes to improve functionality
Overview
NullableExtensions
is still doing some rather sus stuff withUnsafe.As<>()
. I think that can be migrated to useNullable.GetValueRefOrDefaultRef()
now. dotnet/runtime#64677API breakdown
In
NullableExtensions
, removeRawNullableData<T>
and rewrite the extensions to useNullable.GetValueRefOrDefaultRef()
Usage example
...
Breaking change?
No
Alternatives
...
Additional context
No response
Help us help you
No, just wanted to propose this
The text was updated successfully, but these errors were encountered: