title: I use UITableViewSource I want change this code to loop
body: <p>I have UITableViewSource I want loop data  from web service I added to labels to UITableViewSource </p>
  
  <p>Fisrt lable :    Lblqut.text <br>
  Second Lable :  LblAnswer.text</p>
  
  <p>I want Display Data to  UITableViewSource  in labels. Now every thins is ok but I get issue in this line employees.Add(item.Answ, item.AskID)</p>
  
  <pre><code>  var employees = new List&lt;Employee&gt;
   {
   new Employee
   {
       Fullname="ahmed",
       Department="Finance"
   }
  
   };
   listVStud.Source = new EmployeesTVS(employees);
  </code></pre>
  
  <p>I get issue in my code</p>
  
  <pre><code>List&lt;Employee&gt; employees = new List&lt;Employee&gt;();
              foreach (var item in e.Result)
              {
                  employees.Add(item.Answ, item.AskID);
              }
  
              listVStud.Source = new EmployeesTVS(employees);
  </code></pre>
  
  <p>this Class  EmployeesTVS </p>
  
  <pre><code> class EmployeesTVS : UITableViewSource
   {
        List&lt;Employee&gt; employees;
  
      public EmployeesTVS(List&lt;Employee&gt; employees)
      {
          this.employees = employees;
      }
  
      public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
      {
  
          var cell = (EmployeeCell) tableView.DequeueReusableCell("Cell_id", indexPath);
  
          var employee = employees[indexPath.Row];
          cell.updatecell(employee);
  
          return cell;
  
      }
  
      public override nint RowsInSection(UITableView tableview, nint section)
      {
          return employees.Count;
      }
  }
  </code></pre>
  
  <p>this Class Employee </p>
  
  <pre><code> class Employee
  {
  
      public string Fullname
      {
          get;
          set;
      }
  
  
      public string Department
      {
          get;
          set;
      }
  </code></pre>
  
  <p>this class EmployeeCell </p>
  
  <pre><code>public partial class EmployeeCell : UITableViewCell
  {
      public EmployeeCell (IntPtr handle) : base (handle)
      {
  
  
      }
  
      internal void updatecell(Employee employee)
      {
  
          Lblqut.Text = employee.Fullname;
          LblAnswer.Text = employee.Department;
  
  
      }
  }
  </code></pre>