title: Exception thrown when adding item to list
body: <p>I am rather confused. I'm getting an object reference error on the line containing  <code>GeoRoot.features.Add(Feat);</code>, which looks like a list to me. What am I doing wrong?</p>
  
  <pre><code>public double getDistance(GeoCoordinate p1, GeoCoordinate p2)
  {
      double d = p1.Latitude * 0.017453292519943295;
      double num3 = p1.Longitude * 0.017453292519943295;
      double num4 = p2.Latitude * 0.017453292519943295;
      double num5 = p2.Longitude * 0.017453292519943295;
      double num6 = num5 - num3;
      double num7 = num4 - d;
      double num8 = Math.Pow(Math.Sin(num7 / 2.0), 2.0) + ((Math.Cos(d) * Math.Cos(num4)) * Math.Pow(Math.Sin(num6 / 2.0), 2.0));
      double num9 = 2.0 * Math.Atan2(Math.Sqrt(num8), Math.Sqrt(1.0 - num8));
      return (6376500.0 * num9);
  }
  
  public GeoRootObject GetRndNearybyLocationList(double lat, double lon, int meters)
  {
      GeoRootObject GeoRoot=new GeoRootObject();
  
  
      LocationObject thisRndLocation = new LocationObject();
      List&lt;LocationObject&gt; locationsList = new List&lt;LocationObject&gt;();
  
      //List&lt;GeoJSON.Net.Geometry.GeographicPosition&gt; Positions = new List&lt;GeoJSON.Net.Geometry.GeographicPosition&gt;();
  
      Random rnd = new Random();
      int dice = rnd.Next(1, 7);
  
  
      for (int i = 1; i &lt;= dice; i++)
      {
          thisRndLocation = getLocation(lat, lon, meters);
          GeoRoot.type = "FeatureCollection";
          Feature Feat = new Feature();
          Feat.type = "Point";
          List&lt;double&gt; coOrds = new List&lt;double&gt;();
          coOrds.Add(thisRndLocation.lon);
          coOrds.Add(thisRndLocation.lat);
          GeoRoot.features.Add(Feat);
          Geometry Geometry = new Geometry();
          Geometry.coordinates = (coOrds);
          Geometry.type = ("Point");
          Feat.geometry = Geometry;
          Feat.id = i;
          GeoRoot.features.Add(Feat);
  
      }
      return GeoRoot;
  }
  </code></pre>
  
  <p>Below are the classes called in the method fragment above</p>
  
  <pre><code>public class Geometry
  {
      public string type { get; set; }
      public List&lt;double&gt; coordinates { get; set; }
  }
  
  public class Properties
  {
      public string popupContent { get; set; }
  }
  
  public class Feature
  {
      public Geometry geometry { get; set; }
      public string type { get; set; }
      public Properties properties { get; set; }
      public int id { get; set; }
  }
  
  public class GeoRootObject
  {
      public string type { get; set; }
      public List&lt;Feature&gt; features { get; set; }
  }
  </code></pre>