bool?
CS-R1118While the null coalescing operator may come in handy when evaluating the bool?
types, it is recommended that you stick to the traditional equality operators and explicit boolean values — an approach that is more readable and easier to comprehend.
if (instance?.field ?? false)
{
// ...
}
if (instance?.field == true)
{
// ...
}