1

Possible Duplicate:
What is the difference between Bool and Boolean types in C#

What is the difference between bool and Boolean in c# .net

Community
  • 1
  • 1
user287745
  • 3,071
  • 10
  • 56
  • 99

4 Answers4

1

As MSDN states: "The bool keyword is an alias of System.Boolean"
No difference.

Oren A
  • 5,870
  • 6
  • 43
  • 64
0

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

Chris Hutchinson
  • 9,082
  • 3
  • 27
  • 33
0

There is no difference. bool is an alias for System.Boolean.

Klaus Byskov Pedersen
  • 117,245
  • 29
  • 183
  • 222
0

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.

Steve
  • 8,469
  • 1
  • 26
  • 37