title: How to create instance of an object?
body: <p>I am using Json.Net library to convert objects to json and back to objects.</p>
  
  <p>I have an interface:</p>
  
  <pre><code>public interface IGoods
  {
      List&lt;IPen&gt; Pens { get; set; }
      List&lt;IPencil&gt; Pencils{ get; set; }
      void Deserialize(String json);
  
  }
  </code></pre>
  
  <p>implementation:</p>
  
  <pre><code>new public void Deserialize(String json)
      {
          JsonConvert.DeserializeObject&lt;Goods&gt;(json);
      }
  </code></pre>
  
  <p>The obvious error I got is: Could not create an instance of type Project.IPen. Type is an interface or abstract class and cannot be instantated.</p>
  
  <p>How do I overcome this error?</p>
  
  <p>Thanks!</p>