'IsNot' operand of type 'typename' can only be compared to 'Nothing', because 'typename' is a nullable type
Updated: July 20, 2015
For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.
A variable declared as nullable has been compared to an expression other than
Nothing using the
Error ID: BC32128
To compare a nullable type to an expression other than
Nothingby using the
IsNotoperator, call the
GetTypemethod on the nullable type and compare the result to the expression, as shown in the following example.