摘要: public class Person<T> { public string name; public bool sex; public int age; public DateTime birthday; public DateTime? now; public T desc; }//main方法下面的 var NVC = new NameValueCollection(); NVC.Add("name", "白菜"); NVC.A... 阅读全文
posted @ 2011-12-09 17:51 白菜89 阅读(345) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// Json扩展方法类(编译时检查,类型安全) /// </summary> public static class JsonContextExtension { /// <summary> /// 从一个对象信息生成Json串 /// </summary> /// <param name="obj">转换对象</param> /// <typeparam name="T">对象类型</typeparam> /// <re 阅读全文
posted @ 2011-12-09 17:46 白菜89 阅读(1225) 评论(1) 推荐(0) 编辑