title: Why is the code in my foreach unreachable? (Exact copy of working code thats been Unit tested)
body: <p>The code below is an exact copy of code that's working perfectly. The difference is that this code is being placed in a WCF Service Application Project whereas the working code is from a Windows Forms Application Project. The code in the foreach is unreachable which is strange because I've tested the code before and it works, returning the correct values</p>
  
  <pre><code>public IEnumerable&lt;Employee&gt; GetStudentDetails(string username,string password)
      {
          var emp = agrDb.LoginAuthentication(username, password);//procedure in the database thats returning two values
                                                                  //Namely: EmployeeFirstName and EmployeeLastName
          List&lt;Employee&gt; trainerList = new List&lt;Employee&gt;();
  
          foreach (var item in emp)
          {
              //unreachable code here
              Employee employ = new Employee();
              employ.EmployeeFirstName = item.EmployeeFirstName;
              employ.EmployeeLastName = item.EmployeeLastName;
              trainerList.Add(employ);
              //trainerList.Add(item.EmployeeLastName);
          }
          return trainerList;
      }
  </code></pre>