【问题标题】:whats different in bool and boolean in c# .net [duplicate]c#.net中的bool和boolean有什么不同[重复]
【发布时间】:2011-05-07 07:02:25
【问题描述】:

可能重复:
What is the difference between Bool and Boolean types in C#

c#.net中bool和Boolean有什么区别

【问题讨论】:

标签: c#


【解决方案1】:

正如MSDN 所说: "bool 关键字是 System.Boolean 的别名"
没有区别。

【讨论】:

    【解决方案2】:

    'bool' 关键字是 System.Boolean 的别名。两者在功能上没有区别。

    http://msdn.microsoft.com/en-us/library/c8f5xwh7.aspx

    【讨论】:

      【解决方案3】:

      没有区别。 boolSystem.Boolean 的别名。

      【讨论】:

        【解决方案4】:

        bool 是 C# 关键字,Boolean 是 .Net 类型。它们之间没有区别,C#关键字只是系统类型的另一个名称。

        stringString 也有类似的“二元性”,字符串是 C# 关键字,字符串是 .Net 类型。

        【讨论】:

          猜你喜欢
          • 2011-07-10
          • 2011-03-02
          • 1970-01-01
          • 2011-06-12
          • 1970-01-01
          • 1970-01-01
          • 2019-12-18
          • 2018-08-29
          • 1970-01-01
          相关资源
          最近更新 更多