|
-
February 18th, 2009, 05:42 PM
#1
testing if an object is null
How can I test to see if an object is null.
Everything I've found says I should use:
Code:
if (myObject == null)
Unfortunately I've overloaded the == operator so this won't work. Is there another way to do this or something I could do to my overloaded operator to handle this situation?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|