上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 35 下一页
摘要: 1.今天看一下StackExchange.Redis的源代码,里面有这样一段代码 调用时是这样调用的 顿时感觉到诧异,不明白为什么只有get方法的属性可以被初始化时赋值,如果是非初始化的赋值是不行的 但是实在不理解为什么初始化时可以. 于是测试了以下代码(结果是编译不通过) 又测试了下面的(奇迹出现 阅读全文
posted @ 2018-01-31 19:59 zslm___ 阅读(563) 评论(0) 推荐(0)
摘要: /// /// 金额区间判断帮助类 /// public static class DecimalRangeHelper { /// /// 是否有交集 /// /// /// /// public static bool IsInter... 阅读全文
posted @ 2018-01-31 17:12 zslm___ 阅读(3326) 评论(0) 推荐(0)
摘要: class AllocUser { //客户多于客服 public static void Test() { var customers = new List() { new Customer() { ... 阅读全文
posted @ 2018-01-25 19:28 zslm___ 阅读(522) 评论(0) 推荐(0)
摘要: class ListTest { public static void Test() { #region 值类型 var oListVal = new List() { 1,2,3,4 }; var nL... 阅读全文
posted @ 2018-01-21 11:01 zslm___ 阅读(2152) 评论(0) 推荐(0)
摘要: 1 2.引入依赖 3.写单元测试 阅读全文
posted @ 2018-01-16 15:32 zslm___ 阅读(25343) 评论(0) 推荐(0)
摘要: org.mockito mockito-core 1.9.0 test package com.xxx.test.subscribe; import org.junit.Assert; import org.junit.Before;... 阅读全文
posted @ 2018-01-15 14:25 zslm___ 阅读(598) 评论(0) 推荐(0)
摘要: 或者 对于foreach标签的解释参考了网上的资料,具体如下: foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。 foreach元素的属性主要有 item,index,collection,open,separator,close。 item表示集合中每一个元素进行迭代 阅读全文
posted @ 2018-01-08 19:15 zslm___ 阅读(171) 评论(0) 推荐(0)
摘要: List list = new ArrayList(); //list.stream().filter((String s)->System.out.print(s);return s); String str="sadfasdf"; //str.length() Function func1= (s1)->s1.... 阅读全文
posted @ 2017-12-29 18:59 zslm___ 阅读(175) 评论(0) 推荐(0)
摘要: 2.拦截类 3. 4. 对EnableAop改进,支持自动获取相应的接口类,并传入拦截器数组 5.对于wcf服务无法调用控制器的拦截器(ActionFilter),所以可以调用该服务时就自动实现了拦截 6.下一步改进,在EnableAop()里可以无需传入类型参数,而代替的是IInterceptor 阅读全文
posted @ 2017-12-20 20:17 zslm___ 阅读(1279) 评论(0) 推荐(0)
摘要: using System; using System.Linq; using Castle.DynamicProxy; namespace AopTest { class AopTest { static public void Test() { var proxyGenerator = new ProxyGenerato... 阅读全文
posted @ 2017-12-20 15:15 zslm___ 阅读(742) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 35 下一页