Skip to content

Make use of .NET 7's new Nullable.GetValueRefOrDefaultRef() #498

@rickbrew

Description

@rickbrew

Overview

NullableExtensions is still doing some rather sus stuff with Unsafe.As<>(). I think that can be migrated to use Nullable.GetValueRefOrDefaultRef() now. dotnet/runtime#64677

API breakdown

In NullableExtensions, remove RawNullableData<T> and rewrite the extensions to use Nullable.GetValueRefOrDefaultRef()

Usage example

...

Breaking change?

No

Alternatives

...

Additional context

No response

Help us help you

No, just wanted to propose this

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request 📬A request for new changes to improve functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions