示例#1
0
 public string Serialize(Type type, object obj)
 {
     JsonSerializer ser = new JsonSerializer();
     return ser.Serialize(type, obj);
 }
示例#2
0
 public object Deserialize(Type type, string objectGraph)
 {
     JsonSerializer ser = new JsonSerializer();
     return ser.Deserialize(type, objectGraph);
 }