What's the difference between bool and Boolean variables?
-
What difference between types
bool
andBoolean
C#?
-
Boolean
- That's it.value
-type (structure) defined inCTS
(Common Type System)System
♪bool
- is the type (and key word) defined in C#, which corresponds to type CTSSystem.Boolean
♪ Benefits of own type C#bool
It's that you don't have to say a qualified name, as in the case.System.Boolean
or directiveusing System
to use this guy.Like if you write
Boolean b;
and don't include the directive.
using System;
The compiler will give a misstatement, then how can you write?
bool b;
Not taking care of the names spaces, because it's the key word of the C# language.
By the way, there is a problem for Russian speakers: how to correctly translate the word CTS. Whether it is the Common Model System or whether it is the General System of the Model.
I asked for it. https://stackoverflow.com/questions/24600075/meaning-of-words-cts on SO. That's where my question is mined, because for English-speaking countries, it's probably obvious, but it's not obvious to Russian-speaking people. Of particular importance to translators of technical literature on programming. So who has a wish and who thinks it's important, you can put my question in there.
So, as it turns out, correctly translate the CTS word as General Model♪