Fixer to convert [MaybeNull]T
to T?
where applicable
#50819
Labels
Area-IDE
Concept-Continuous Improvement
Feature Request
New Language Feature - Nullable Reference Types
Nullable Reference Types
Milestone
C# 9 allows for
T?
on types that are not known to be reference or value types. This reduces the need to use nullability attributes.For instance
void M<T>([AllowNull]T value)
can now be expressed withvoid M<T>(T? value)
.We could create an analyzer/fixer pair to help users migrate to the more modern and concise style.
Relates to #48023 (which is now closed and was attempting to solve that problem a different way)
The text was updated successfully, but these errors were encountered: