title: List<> Get Next element or get the first
body: <p>I want to get the next element in a list and if the list is at it's end I want the first element.
  So I just want it to circle in other words.</p>
  
  <pre><code>   List&lt;int&gt; agents = taskdal.GetOfficeAgents(Branches.aarhusBranch);
      if (lastAgentIDAarhus != -1)
      {
          int index = agents.IndexOf(lastAgentIDAarhus);
          if (agents.Count &gt; index + 1)
          {
              lastAgentIDAarhus = agents[index + 1];
          }
          else
          {
              lastAgentIDAarhus = agents[0];
          }
      }
      else
      {
          lastAgentIDAarhus = agents[0];
      }
  </code></pre>
  
  <p>I am fairly displeased with my own solution shown above, let me know if you have a better one :)</p>