You cannot write


bool? flag = null;

if( flag ) // Compiler issues CS0266 here, R# also issues a warning

{

}

However, you can write


bool? flag = null;

if( flag == true )

{

}

Advertisements