2019年4月29日

单例和静态类区别

摘要: 1>什么时候使用静态类代替singleton : 这里有几个很好的静态类比singleton更好的应用场景. 最基本的例子就是在Java中的java.lang.Math类的实现方式, Math类就是用过静态方法来实现的,而不是单例来实现的. 总结 : 如果你的singleton不提维持任何状态, 仅 阅读全文

posted @ 2019-04-29 10:33 只想愛你 阅读(3879) 评论(0) 推荐(0) 编辑

2019年4月15日

获取字符串节点值

摘要: 获取Json字符串某节点的值 /// <summary> /// 获取Json字符串某节点的值 /// </summary> public static string GetJsonValue(string jsonStr, string key) { string result = string. 阅读全文

posted @ 2019-04-15 15:38 只想愛你 阅读(229) 评论(0) 推荐(0) 编辑

以管理员身份运行

摘要: using System; using System.Diagnostics; using System.Security.Principal; using System.Windows.Forms; namespace Test { static class Program { /// <summ 阅读全文

posted @ 2019-04-15 15:34 只想愛你 阅读(486) 评论(0) 推荐(0) 编辑

2019年4月8日

博客第一条

摘要: 此博客将会记录日常工作中的一些趣事,得到的经验,学到的技术。 阅读全文

posted @ 2019-04-08 09:43 只想愛你 阅读(147) 评论(0) 推荐(0) 编辑

导航