Value type - bool

suggest change
// A field of type bool defaults to false. This local is unassigned until the assignment below.
bool b;
// A field of type bool? defaults to null. This local is unassigned.
bool? z;
b = true;
if (b) {
    Console.WriteLine("Boolean has true value");
}

The bool keyword is an alias for System.Boolean. It is used to declare variables to store the Boolean values, true and false.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents