What is the difference between bool and Boolean types in C#?
What is the difference between bool and Boolean types in C#?
bool is an alias for System.Boolean just as int is an alias for System.Int32. See a full list of aliases here: Built-In Types Table (C# Reference).
There is no difference - bool is simply an alias of System.Boolean.
http://msdn.microsoft.com/en-us/library/c8f5xwh7(VS.71).aspx
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.
No actual difference unless you get the type string. There when you use reflection or GetType() you get {Name = "Boolean" FullName = "System.Boolean"} for both.