Skip to content
New issue

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

Feature request: Fully support nullable reference types in the WPF API surface area for .NET 5 #2885

Closed
Austin-Lamb opened this issue Apr 14, 2020 · 3 comments
Labels
Enhancement Requested Product code improvement that does NOT require public API changes/additions

Comments

@Austin-Lamb
Copy link

Mads Torgerson has laid out a call to action for .NET libraries to properly support the C# 8 Nullable Reference Types feature by the time .NET 5 comes out (see here : https://devblogs.microsoft.com/dotnet/embracing-nullable-reference-types/ )

It would be great if WPF can support this feature. Currently, as an example, IValueConverter does not support this correctly - the return type from "Convert" is object but it should be "object?" since it's valid to return a null.

Currently in my WPF app I have to disable nullable reference types on my IValueConverter source files, which is unfortunate for .NET 5 alignment.

Note: there may be more parts of the WPF API surface that should be nullable-ready, IValueConverter is a concrete example I can point to, but this feature request is really to correctly support NRTs for the entire API surface per Mads' post.

@fabiant3 fabiant3 added the Enhancement Requested Product code improvement that does NOT require public API changes/additions label May 12, 2020
@fabiant3 fabiant3 added this to the Future milestone May 12, 2020
@Rand-Random
Copy link

Any updates on this issue? Is .NET 7 a possibility?

@lindexi
Copy link
Member

lindexi commented Mar 26, 2022

See #3062

@pchaurasia14
Copy link
Member

Closing this issue in favor of #7563

@ghost ghost removed this from the Future milestone Oct 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Nov 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement Requested Product code improvement that does NOT require public API changes/additions
Projects
None yet
Development

No branches or pull requests

5 participants