开发者

whats different in bool and boolean in c# .net [duplicate]

开发者 https://www.devze.com 2023-01-24 18:10 出处:网络
This question already has answers here: 开发者_如何学JAVAClosed 12 years ago. Possible Duplicate:
This question already has answers here: 开发者_如何学JAVA Closed 12 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消