411 REFERENCE · Wikibooks
C Sharp Programming/Keywords/bool
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Keywords bool
__TOC__
The bool keyword is used in field, method, property, and variable declarations and in cast and typeof operations as an alias for the .NET Framework structure System.Boolean. That is, it represents a value of true or false. Unlike in C++, whose boolean is actually an integer, a bool in C# is its own data type and cannot be cast to any other primitive type.