摘要:
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... 阅读全文
摘要:
/// <summary> /// Json扩展方法类(编译时检查,类型安全) /// </summary> public static class JsonContextExtension { /// <summary> /// 从一个对象信息生成Json串 /// </summary> /// <param name="obj">转换对象</param> /// <typeparam name="T">对象类型</typeparam> /// <re 阅读全文