上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: 最常用的字符实体 显示说明实体名称实体编号 半方大的空白 &ensp; &#8194; 全方大的空白 &emsp; &#8195; 不断行的空白格 &nbsp; &#160; < 小于 &lt; &#60; > 大于 &gt; &#62; & &符号 &amp; &#38; " 双引号 &quot; 阅读全文
posted @ 2021-09-18 17:48 Robot-Blog 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1.引用程序集 <#@ assembly name="$(TargetDir)\CustProjectName.dll" #> 2.引用命名空间 <#@ import namespace="CustProjectName.Util" #> 3.正常调用 3.1.T4Code <#@ template 阅读全文
posted @ 2021-09-17 16:27 Robot-Blog 阅读(693) 评论(12) 推荐(0) 编辑
摘要: 1.基础时间函数:Link:设置日期 | Link:获取日期 2.天/周:今天/昨天/近三天/近七天/本周 var DateUtil = new function() { /** * 获取:今天 * type: 0-不修改时间;1-重置为最小时间;2-重置为最大时间 */ this.getCurre 阅读全文
posted @ 2021-09-16 13:05 Robot-Blog 阅读(161) 评论(0) 推荐(0) 编辑
摘要: ReflectionOrderExtend.cs /// <summary> /// 泛型排序扩展类:运行时一个泛型一个实例 /// </summary> /// <typeparam name="T"></typeparam> public class ReflectionOrderExtend< 阅读全文
posted @ 2021-09-14 17:22 Robot-Blog 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 1.类结构 /// <summary> /// 测试继承-父类 /// </summary> public class TestInheritBase { } /// <summary> /// 测试继承-抽象父类 /// </summary> public abstract class TestA 阅读全文
posted @ 2021-09-09 10:51 Robot-Blog 阅读(3583) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 根据单元格的类型获取单元格的值 /// </summary> /// <param name="rowCell"></param> /// <param name="type"></param> /// <returns></returns> public sta 阅读全文
posted @ 2021-09-07 16:28 Robot-Blog 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 1.基于反射,实例化泛型对象:Activator public static T GetInStance<T>() { var ob = Activator.CreateInstance<T>(); return ob; } 2.通过类型约束 public static T GetInStance2 阅读全文
posted @ 2021-09-06 14:12 Robot-Blog 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1.下载文件,提取码: oft9 2.配置文件添加数据库连接 <connectionStrings> <add name="ConnStr" connectionString="data source=AAA;initial catalog=AAA;persist security info=Tru 阅读全文
posted @ 2021-09-06 11:36 Robot-Blog 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 帮助类 using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using xFramework.Enums; 阅读全文
posted @ 2021-09-03 17:52 Robot-Blog 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1.定义lambda的参数,型如我们常写的“x=>”: using System.Linq.Expressions; var type = typeof(CustClass); ParameterExpression parameter = Expression.Parameter(type, "x 阅读全文
posted @ 2021-09-01 20:20 Robot-Blog 阅读(294) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页