Solved

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

Posted on 2008-09-29
4
192 Views
Last Modified: 2010-04-21
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
Comment
Question by:kwh3856
4 Comments
 
LVL 16

Accepted Solution

by:
CuteBug earned 250 total points
ID: 22596774
use bool

bool CoveredLoad = true;
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 250 total points
ID: 22596775
bool CoveredLoad = true;
0
 

Author Closing Comment

by:kwh3856
ID: 31501194
Thanks for the quick response.

Thanks
Kenny
0
 
LVL 3

Expert Comment

by:R_Janssen
ID: 22596793
try Boolean (or bool for short).
example:
bool IsThisTrue = true;
 
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question