如何利用json.net反序列化包含自定义类型的Arraylist
本帖最后由 maoxiajun 于 2012-06-11 15:46:25 编辑
public class a {
public int one {get;set;}
public ArrayList two{get;set;}
}
public class b {
public int three {get;set;}
public int four {get;set;}
}
a tmp = new a();
b b1 = new b();
b b2 = new b();
a.two.Add(b1);a.two.Add(b2);
(b[])a.two.ToArray(typeof(b))