I want to check to see if an object exists. In VB, I would have checked to see if the object Is Nothing. What is the correct way to determine this in C#?
Edit:
I didn't have the correct search criteria. I modified my search and found an answer.
Printable View
I want to check to see if an object exists. In VB, I would have checked to see if the object Is Nothing. What is the correct way to determine this in C#?
Edit:
I didn't have the correct search criteria. I modified my search and found an answer.
For those subsequent views:
Code:if (blah == null) {
// Not instantiated.
}
Thanks axion_sa for posting the solution. It completely slipped my mind when I edited the post.
Thanks again.