Coder Perfect

In C#, how do you tell the difference between bool and Boolean types?

Problem

In C#, how do you tell the difference between bool and Boolean types?

Asked by Gary Willoughby

Solution #1

System is an alias for bool. In the same way that int is an alias for System, so is Boolean. Int32. Here’s a complete list of aliases: Table of Built-In Types (C# Reference).

Answered by Kent Boogaart

Solution #2

There isn’t one, in my opinion.

System is essentially an alias for bool. Boolean

Answered by bhinks

Solution #3

They are the same person. Boolean is simply referred to as bool.

Answered by MagicKat

Solution #4

There is no distinction between the two; bool is merely an alias for System. Boolean.

http://msdn.microsoft.com/en-us/library/c8f5xwh7(VS.71).aspx

Answered by Zach Burlingame

Solution #5

I know it’s been a long time, but I came across this website on Google with the same question.

There is one minor difference on the MSDN page as of now.

VS2005

VS2010

Answered by Ryan Buddicom

Post is based on https://stackoverflow.com/questions/134746/what-is-the-difference-between-bool-and-boolean-types-in-c-sharp