title: Nested IEnumerable
body: <p>I have one large IEnumerable that I want to split into several. </p>
  
  <pre><code>// I want to do this
  
      public A Method1(B b)
      {
        return Method2(b);
      }
  </code></pre>
  
  <p>Ok my code
  // switcher method that should delegate the work</p>
  
  <pre><code>public IEnumerable&lt;BufTrade&gt; Split(BufTrade bufRecord)
  {
    switch(someFlag)
   {
     case "A":
  
       // does not compile
       return Impl1(bufTrade);
  
       // does not compile
       yield return Impl1(bufTrade);
   }
  }
  
  // implements for type A    
  public IEnumerable&lt;BufTrade&gt; Impl1(BufTrade bufRecord)
  {
   yield return trade1;
   yield return trade2;
  
   // etc
  }
  </code></pre>