Enabling Invalid Nullable Values in C# 7.3 – A

Upon reviewing the JLS, I found that it lacks clarity regarding the type of the conditional when dealing with two incompatible reference types. As a possible solution, it should be noted that declaring a variable of type ‘Because’ is not possible since it is a class and ‘Because’ can only be used if it is a ”.


Solution:

As per the error message, it is recommended to attempt using

<LangVersion>preview</LangVersion>

.

Frequently Asked Questions

Posted in Uncategorized