Possible Duplicate:
What is the difference between Bool and Boolean types in C#
What is the difference between bool and Boolean in c# .net
As MSDN states:
"The bool keyword is an alias of System.Boolean"
No difference.
The 'bool' keyword is an alias for System.Boolean. There is no functional difference between the two.
http://msdn.microsoft.com/en-us/library/c8f5xwh7.aspx
There is no difference. bool
is an alias for System.Boolean
.
bool
is the C# keyword, Boolean
is the .Net type. There is no difference between them, the C# keyword is just another name for the system type.
There is a similar "duality" with string
and String
, string being a C# keyword and String the .Net type.
精彩评论