Q:

Error in DeserializeObject method json?

I have class in my project:
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;
    }       
}

I'm trying to deserialize a json object of this class like the following
strObjJson = "{\"Name\":\"proName\"}"; using this: 

ProductType deserializedProductType = JsonConvert.DeserializeObject(strObjJson);

However the following error appears:
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.
How can I repair this?

A:

Well, if the error says:

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.

Then why don't you add a constructor with no arguments?
public ProductType()
{
}

