title: .net - For Each Obj as MyObject in MyArray -- Is this doable without implementing anything?
body: <p>I'm using VS2008.</p>
  
  <p>Is the following OK to do the following VB.NET with a very simple class (see below)?</p>
  
  <pre><code>for each CurrentObject as MyObject in MyArray
    'access current object
  next
  </code></pre>
  
  <p>The "simple class":</p>
  
  <pre><code>Class MyObject
    public I as integer
  end class
  </code></pre>
  
  <p>I seem to remember that something about needing iEnumerable, but my compiler isn't complaining. </p>
  
  <p><strong>Edit:</strong> Clarification</p>