Results 1 to 3 of 3

Thread: What is the equivalent of 'Is Nothing' ** RESOLVED **

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    The Big D
    Posts
    310

    What is the equivalent of 'Is Nothing' ** RESOLVED **

    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.

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    For those subsequent views:
    Code:
    if (blah == null) {
        // Not instantiated.
    }

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    The Big D
    Posts
    310
    Thanks axion_sa for posting the solution. It completely slipped my mind when I edited the post.

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width