What is the difference between Bool and Boolean types in C#?
I don't believe there is one.
bool is just an alias for System.Boolean.
bool
is an alias for System.Boolean
just as int
is an alias for System.Int32
. See a full list of aliases here.
HTH, Kent
They are the same. Boolean helps simplify conversion back and forth between C# and VB.Net. Most C# programmers tend to prefer 'bool', but if you are in a shop where there's a lot of both VB.Net and C# then you may prefer Boolean because it works in both places.
As has been said, they are the same. There are two because bool is a C# keyword and Boolean a .Net class.
bool is an alias for the Boolean class. I use the alias when declaring a variable and the class name when calling a method on the class.
There is no difference - bool is simply an alias of System.Boolean.
http://msdn.microsoft.com/en-us/library/c8f5xwh7(VS.71).aspx
Here is a post which explains the difference between a bool and a boolean
http://dotnetrobert.com/?q=node/22
Hope you find it useful.