Difference between Boolean and bool in c#?

This question already has an answer here:

  • What is the difference between bool and Boolean types in C# 15 answers
  • What is the difference between String and string in C#? 59 answers

  • They are the same. If you mouse over the lowercase one it shows that it is an alias to the uppercase version.

    Note that by convention you should always use the lowercase version


    bool is an alias for System.Boolean , where as double is an alias for System.Double and int is an alias for System.Int32

    They are all essentially the same.

    链接地址: http://www.djcxy.com/p/3608.html

    上一篇: 是字符串和字符串相同吗?

    下一篇: 布尔和布尔在C#之间的区别?