title: GetEnumerator: return or yield return
body: <p>My class implements IEnumerable. And these two ways to code GetEnumerator method can be compiled:</p>
  
  <pre><code>public IEnumerator GetEnumerator()
  {
      yield return Database[id].GetEnumerator();
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public IEnumerator GetEnumerator()
  {
     return Database[DatabaseId].GetEnumerator();
  }
  </code></pre>
  
  <p>where Database[id] is List. Is any difference between these implementations?</p>