CSharp examples for System:Nullable
Nullable Bool Not
public class Main{ internal static bool? Not(this bool? operand) {// w ww. j a v a2s . c o m // three-valued logic 'not' (T = true, F = false, U = unknown) // !T = F // !F = T // !U = U return operand.HasValue ? !operand.Value : (bool?)null; } }