title: Getting a variable from a list of objects
body: <p>How would you get a variable from each object in a list?</p>
  
  <p>I've got this so far: </p>
  
  <pre><code>void SortList()
  {
      int j = modules.Count;
      string[] titles = new string[j];
  
      for (int i = 0; i &gt; modules.Count; i++)
      {
          titles[i] = 
      }
  }
  </code></pre>
  
  <p>And I'm trying to get the variable "code" from each object in modules.</p>
  
  <p>thanks.</p>