
.NET
liaoqiaoling888
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
随笔
单例模式 懒汉模式 public class DataCache { private static DataCache _instance { get; set; } private DataCache() { InitDataCache(); } public static DataCache GetInstance() ...原创 2018-05-25 13:18:00 · 151 阅读 · 0 评论 -
C# Func简记
Func<[类型1],[类型2],...[类型n]> 方法名([参数1],[参数2]...) = (p1,p1...) =>{/** 方法**/ return 返回值;}Action 类似Func,区别在于没有返回类型原创 2018-05-15 10:12:12 · 200 阅读 · 0 评论 -
AutoMapper in C#
最近做excel导入导出的功能,下面是一些代码笔记。使用的是EPPlus 对于全string型的自动转换可以采用AutoMapper。简单也方便理解。需要注意的是XExcelModel, XItem的命名需要保证一定的相似性 public static class AutoMapperConfiguration { public static void Configure() ...原创 2018-05-25 14:17:37 · 214 阅读 · 0 评论