01 2018 档案

摘要:1.今天看一下StackExchange.Redis的源代码,里面有这样一段代码 调用时是这样调用的 顿时感觉到诧异,不明白为什么只有get方法的属性可以被初始化时赋值,如果是非初始化的赋值是不行的 但是实在不理解为什么初始化时可以. 于是测试了以下代码(结果是编译不通过) 又测试了下面的(奇迹出现 阅读全文
posted @ 2018-01-31 19:59 zslm___ 阅读(556) 评论(0) 推荐(0) 编辑
摘要:/// /// 金额区间判断帮助类 /// public static class DecimalRangeHelper { /// /// 是否有交集 /// /// /// /// public static bool IsInter... 阅读全文
posted @ 2018-01-31 17:12 zslm___ 阅读(3293) 评论(0) 推荐(0) 编辑
摘要:class AllocUser { //客户多于客服 public static void Test() { var customers = new List() { new Customer() { ... 阅读全文
posted @ 2018-01-25 19:28 zslm___ 阅读(517) 评论(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___ 阅读(2122) 评论(0) 推荐(0) 编辑
摘要:1 2.引入依赖 3.写单元测试 阅读全文
posted @ 2018-01-16 15:32 zslm___ 阅读(25279) 评论(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___ 阅读(594) 评论(0) 推荐(0) 编辑
摘要:或者 对于foreach标签的解释参考了网上的资料,具体如下: foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。 foreach元素的属性主要有 item,index,collection,open,separator,close。 item表示集合中每一个元素进行迭代 阅读全文
posted @ 2018-01-08 19:15 zslm___ 阅读(167) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示