5 Replies Latest reply on Dec 28, 2007 10:31 PM by 807601

    How to check if an array is initialized?

    807601
      Hi, this is my first post on this forums, and I have a question that I could not find the answer to using Google or the forum search feature.

      My question is: How do I check to see if an array variable is initialized?

      My goal here is to have something like:

      // Somewhere in the program:
      int[] foo;

      // Somewhere else in the program:
      if (foo is not initialized) {
      // do stuff
      }