上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 35 下一页
摘要: /// /// 将数值字符串加密为短字符串 /// public static class NumberToShortString { /// /// 共62个字符 /// private static readonly string Keys = "0123456789abcdefghijk... 阅读全文
posted @ 2017-02-22 18:48 zslm___ 阅读(2597) 评论(0) 推荐(0)
摘要: A reader lives a thousand lives before he die... The man who never reads lives only one. 阅读全文
posted @ 2017-02-21 16:02 zslm___ 阅读(142) 评论(0) 推荐(0)
摘要: public static class JsonHelper { static JsonHelper() { Newtonsoft.Json.JsonSerializerSettings setting = new Newtonsoft.Json.JsonSerializerSettings(); Jso... 阅读全文
posted @ 2017-02-21 09:48 zslm___ 阅读(8424) 评论(1) 推荐(1)
摘要: 静态方法是同步方法:自动加锁,锁的对象是类对象 阅读全文
posted @ 2017-02-15 17:38 zslm___ 阅读(380) 评论(0) 推荐(0)
摘要: com.google.code.gson gson 2.8.0 import com.google.gson.Gson; import com.google.gson.GsonBuilder; class JsonHelper { public sta... 阅读全文
posted @ 2017-02-14 18:21 zslm___ 阅读(1321) 评论(0) 推荐(0)
摘要: Life is a journey. What we should care about is not where it's headed but what we see and how we feel. Convention over Configuration(约定优于配置) 阅读全文
posted @ 2017-02-09 17:17 zslm___ 阅读(249) 评论(0) 推荐(0)
摘要: public sealed class JsonSerializer { public static byte[] Serialize(object message) { return Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(message)); } ... 阅读全文
posted @ 2017-02-05 19:28 zslm___ 阅读(1719) 评论(0) 推荐(0)
摘要: var cts = new CancellationTokenSource(); Thread t = new Thread(new ThreadStart(() => { Console.WriteLine(string.Format("{1}线程Id:{0}开始运行", Thread.C... 阅读全文
posted @ 2017-02-05 18:16 zslm___ 阅读(399) 评论(0) 推荐(0)
摘要: 命令行 注意选择 程序包源 阅读全文
posted @ 2017-01-05 18:44 zslm___ 阅读(332) 评论(0) 推荐(0)
摘要: 调用如下 有意思的是假如:当前日期是 2016.12.29日,起始日期是2016.7.30 得到的结果与 起始日期是 2016.7.31号一样,都是 "4 月, 4 周, 1 天" 这是因为11月没有31号 为了避免出现 1.31号加1个月变成2.28,而2.28加1个月变成 3.28这种狗血事情, 阅读全文
posted @ 2016-12-29 14:19 zslm___ 阅读(372) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 35 下一页