Nullable<T>.GetValueOrDefault() should be implicit in a nullable context #4197
-
One thing that bugs me: Currently you have to call
In a Nullable context, the
This ensures consistency. I don't think that a change would break anything existing in a major way. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Discussed here: #1865. Difficult to be sure, but I think https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-10-24.md#using-nullable-values-as-non-nullable-values implies they're not going to do this. |
Beta Was this translation helpful? Give feedback.
Discussed here: #1865. Difficult to be sure, but I think https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-10-24.md#using-nullable-values-as-non-nullable-values implies they're not going to do this.