Search code examples
c#typesboolean

What is the difference between bool and Boolean types in C#


What is the difference between bool and Boolean types in C#?


Solution

  • bool is an alias for System.Boolean just as int is an alias for System.Int32. See a full list of aliases here: Built-In Types Table (C# Reference).