title: Error in DeserializeObject method json?
body: <p>I have class in my project:</p>
  
  <pre><code>public class ProductType
  {
      private string name;
      private Guid id;        
  
      public string Name
      {
          get { return name; }
          set { name = value; }
      }
  
      public Guid Id
      {
          get { return id; }
          set { id = value; }
      }
  
      public override string ToString()
      {
          return name;
      }
  
      public ProductType(string Name)
      {
          id = Guid.NewGuid();
          this.name = Name;
      }               
  
      public ProductType(Guid Id, string Name)
      {
          this.id = Id;
          this.name = Name;
      }       
  }
  </code></pre>
  
  <p>I'm trying to deserialize a json object of this class like the following
  <pre>strObjJson = "{\"Name\":\"proName\"}";</pre> using this: </p>
  
  <pre>
  ProductType deserializedProductType = JsonConvert.DeserializeObject(strObjJson);
  </pre>
  
  <p>However the following error appears:</p>
  
  <pre>Unable to find a constructor to use for type `ClassLibraryObjects.ProductType`. A class should either have a default constructor or only one constructor with arguments.</pre>
  
  <p>How can I repair this?</p>