TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
wadeontheweb
NA
19
0
How to determine if a bool variable has not been assigned a value?
Feb 29 2004 11:30 PM
How do I determine if a bool variable has not been assigned a value in C#? Before I set a bool variable already declared, I assume it is a value of null. What is the syntax to determine if it is null? If I do the following I get an error that I can't use "==" on a bool: bool test; if ( test == null ) { // This bool var has not been assigned yet. } Sorry for such a noob question.
Reply
Answers (
4
)
Date property and CDate function
Way to convert an object to a string and back?