title: Implement IEnumerable on property
body: <p>Assuming the class </p>
  
  <pre><code>public class Foo 
  {
      public List&lt;Bar&gt; Bar = new List&lt;Bar&gt;();
      public string Something;
      public TStatus Status;
  }
  </code></pre>
  
  <p>Bar is a class defined as</p>
  
  <pre><code>public class Bar
  {
      public string Code;
      public string Message;
      public TStatus Status;
  }
  </code></pre>
  
  <p>I need to iterate the list Bar but I cant use a foreach because I need to implement IEnumerable I am a bit of a newbie and am having difficulty working out how to implement it, any help appreciated.</p>