i am converting a vb project to c#;
everything is ok except this line:
information = DirectCast(jsonserializer.Deserialize(jsonString, GetType(List(Of formData))), List(Of formData))
i created a class(formData) just same as vb, and json string is the same as vb.
public class formData
{
private string part;
private string key;
private string val;
public formData(string part, string key, string val)
{
this.part = part;
this.key = key;
this.val = val;
}
public string Part
{
get { return part; }
set { part = value; }
}
public string Key
{
get { return key; }
set { key = value; }
}
public string Value
{
get { return val; }
set { val = value; }
}
}
what should i do?
i have to use "http://json.codeplex.com/"?