title: Iterate through a list in sharepoint 2013
body: <p>I'm not familiar with sharepoint and I've been asked to do the following task. Im okay with writing c# code though. Does this question mean I need to create a class called Employee Cars, with these properties: Make, Model, Registration, Year of Production and create a list of that object and iterate through my list? If that's the case I know how to do that but I'm not sure how this works in sharepoint. Could you please also send me some references about sharepoint so I get familiar with how to do this task on sharepoint.
  Here is the question:
  A SharePoint 2013 Custom List, Employee Cars, contains entries for each employee of the company. Using the SharePoint Client Object Model (CSOM), Write a program to iterate through each car in the list, where the production year is greater than 2005.  The List contains the following fields: Make (String), Model (String), Registration (String) and Year of Production (Int). Use the sheet provided to show your answer.</p>
  
  <pre><code>using Microsoft.SharePoint.Client;
  using System;
  using System.Text;
  
  
  namespace EmployeeCarsApplication
  {
      class Program
      {
          static void Main(string[] args)
          {
           ClientContext spContext = new ClientContext("http://ExampleSharePointURL");
  
              Console.ReadLine();
          }
      }
  }
  </code></pre>