bool and Boolean

  • Thread starter Thread starter Alan T
  • Start date Start date
Hi Alan,

It matters not. bool is an alias for System.Boolean. bool is easier to
read and write though.
 
There is no difference in the functionality. bool is alias of System.Boolean.
But it feels better to use bool than Boolean.
 
Alan said:
Should I use bool or Boolean to define a variable?

Just be consistent.

I prefer to use the C# language types over .NET types
where such exist.

But that is just my personal preferences.

Being consistent is not a personal preference
that is common sense.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top