• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

How do you define a variable as a bit or True in C#?

I need to define a variable as true but I am unsure what/how to assign the variable.  Here is how I am trying to do it now but obviously it is not right.  Can someone point me in the right direction?

bit CoveredLoad = true;

0
kwh3856
Asked:
kwh3856
2 Solutions
 
CuteBugCommented:
use bool

bool CoveredLoad = true;
0
 
Anurag ThakurTechnical ManagerCommented:
bool CoveredLoad = true;
0
 
kwh3856Author Commented:
Thanks for the quick response.

Thanks
Kenny
0
 
R_JanssenCommented:
try Boolean (or bool for short).
example:
bool IsThisTrue = true;
 
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now