摘要: 一、Json-->JObject 例1: { "姓名":"小明", "年龄":18, "性别":"男", } 对应的JObject JObject Person = new JObject(); Person.Add(new JProperty("姓名", "小明")); Person.Add(ne 阅读全文
posted @ 2022-04-16 17:44 春天花会开, 阅读(42) 评论(0) 推荐(0)
摘要: public class A { } public static class B { public static void setError(this A a,int errorCode)//定义类A的扩展方法,前面是类型后面是参数 { } } public class C { public voi 阅读全文
posted @ 2022-04-16 17:04 春天花会开, 阅读(29) 评论(0) 推荐(0)