C# Programming/Keywords/bool
Appearance
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.
C# Keywords | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Special C# Identifiers (Contextual Keywords) | |||||||||||||||
| |||||||||||||||
Contextual Keywords (Used in Queries) | |||||||||||||||
|