In C#, for example, when I compare two nullable booleans (bool?
) I get the following results :
true & null = null
false & null = false
true | null = true
false | null = null
The issue is that I couldn't understand how those results come, what's the rule which I can use to determine the result of a logical operator on two booleans, when one of them is null?