title: How to get a value of a list in SharePoint?
body: <p>I have created a calendar list and I have added few columns to that list. Now I wanted to retrieve a value of a particular list item from the calendar list.
  <strong>List name</strong> --><br>
  Calendar
  <strong>Fields --></strong>
   Program Name , Start Date, End Date, Facilitator, Total Seat, etc....</p>
  
  <p>I would like to retrive value of "Total Seat" alone. </p>
  
  <pre><code>namespace CourseCount.EventReceiver1 
  { 
    public override void ItemAdded(SPItemEventProperties properties) 
    { 
      base.ItemAdded(properties); 
      SPSite oSiteCollection = SPContext.Current.Site; 
      SPWeb myWeb = SPContext.Current.Web; 
      SPList spList = myWeb.Lists["Calendar"]; 
      SPListItemCollection spListItemCollection = spList.Items;
      SPListItem item = spListItemCollection.Add(); 
      int count = item["Total Seat"]; // &lt;-here is my doubt 
    } 
  } 
  </code></pre>