title: Get to next element in List
body: <p>If i have a list of objects and i want to move to the next node with each function call (ie create a "GetNextNode" how would i go about doing this? Right now i have one method which will get the first node of my List and set the currentObj to it and return it (leaving previous node still at null) a flag indicates that we're not dealing with the first node in the list anymore. then i move forward and i want to iterate through the list (using foreach i guess?) to one node past my currentObj. Here is my code:</p>
  
  <pre><code> List&lt;Employee&gt; ListOfEmployees = new List&lt;Employee&gt;();
   Employee currEmployeeObj = null;
   Employee prevEmployeeObj = null;
  
   foreach (Employee employee in ListOfEmployees)
          {
             //how do i keep track of the previous and current employee in here?
          }
  
          return (currEmployeeObj); 
      }
  </code></pre>