title: VB.NET Iterating through objects of a structure
body: <p>I have a structure "xyz" with 3 string objects in it. "foo" "bar" and "abc" I want to iterate through the structure and compare the names of the objects.</p>
  
  <pre><code>Structure xyz
      dim foo as string
      dim bar as string
      dim abc as string
  End Structure
  </code></pre>
  
  <p>Pseudo:</p>
  
  <pre><code>For each x as object in xyz 
      if x.Name = "foo" then
          'bang
      end if
  End each
  </code></pre>
  
  <p>Is this possible?</p>