打赏
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 60 下一页
摘要: public void ExtendFuncT() { //():匿名无参方法。() =>方法名,指派匿名无参方法去执行另外一个方法。 LazyValue lazyOne = new LazyValue(() => ExpensiveOne());//匿名无参方法被指派去执行ExpensiveOne Lazy... 阅读全文
posted @ 2018-08-14 20:10 刘奇云 阅读(390) 评论(0) 推荐(0)
摘要: 执行结果: 阅读全文
posted @ 2018-08-14 17:21 刘奇云 阅读(388) 评论(0) 推荐(0)
摘要: public static class JsonSplitExtention { public static bool IsJson(this string json) { return JsonSplit.IsJson(json); } } public class JsonSplit {... 阅读全文
posted @ 2018-08-14 16:06 刘奇云 阅读(5405) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/adley_function/article/details/52130762 substr和substring两个都是截取字符串的。 两者有相同点,如果只是写一个参数,两者的作用都是一样的:就是截取字符串当前下标以后直到字符串最后的字符串片段。 例如: 阅读全文
posted @ 2018-08-14 11:23 刘奇云 阅读(641) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/af6eb8d3d4bf 首先看一段程序: using System; class Program { static void Main(string[] args) { string a = "hello world"; string b = a 阅读全文
posted @ 2018-08-09 09:14 刘奇云 阅读(3800) 评论(1) 推荐(5)
摘要: https://blog.csdn.net/soonfly/article/details/70147205 在翻《深入理解Java虚拟机》的书时,又看到了2-7的 String.intern()返回引用的测试。 其实要搞明白String.intern(),我总结了下面几条规则: 一、new Str 阅读全文
posted @ 2018-08-09 09:02 刘奇云 阅读(239) 评论(0) 推荐(1)
摘要: 线程不安全: 线程不安全: 线程不安全; 线程安全: 线程不安全: 线程安全: 线程安全: 线程安全: 线程安全: 线程不安全: 线程安全: 线程不安全: 原理:https://blog.csdn.net/soonfly/article/details/70147205 https://www.ji 阅读全文
posted @ 2018-08-08 19:42 刘奇云 阅读(2227) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/xiangniu/archive/2011/08/17/2143486.html 学了这么久,终于弄明白了。。。 阅读全文
posted @ 2018-08-08 18:52 刘奇云 阅读(2504) 评论(1) 推荐(0)
摘要: https://www.cnblogs.com/cang12138/p/7323709.html 阅读目录 1.什么时候用String?什么时候用StringBuilder? 2.String与StringBuilder的区别 总结 阅读目录 1.什么时候用String?什么时候用StringBui 阅读全文
posted @ 2018-08-08 18:45 刘奇云 阅读(10105) 评论(0) 推荐(1)
摘要: $("#" + inputId).on("input", function () { var checkboxId = $("#" + inputId).attr("target"); if ($("#" + inputId).val().length == 0) { //关闭复选框 ... 阅读全文
posted @ 2018-08-07 14:00 刘奇云 阅读(3682) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 60 下一页