2018年9月26日

摘要: 一、文件概述 global.asax这个文件包含全局应用程序事件的事件处理程序。它响应应用程序级别和会话级别事件的代码。 运行时, Global.asax 将被编译成一个动态生成的 .NET Framework 类,该类是从HttpApplication基类派生的。 因此在global.asax中的 阅读全文
posted @ 2018-09-26 16:23 minrh 阅读(225) 评论(0) 推荐(0) 编辑

2018年8月11日

摘要: opertor用于定义类型转化时采用两种方式,饮食转换implicit和显示转换explicit 阅读全文
posted @ 2018-08-11 20:11 minrh 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 在.net4之前,泛型接口是不变的。.net4通过协变和抗变为泛型接口和泛型委托添加了一个重要的拓展 1、抗变:如果泛型类型用out关键字标注,泛型接口就是协变的。这也意味着返回类型只能是T。 实例: 1 static void Main(string[] args) 2 { 3 IIndex<Re 阅读全文
posted @ 2018-08-11 18:22 minrh 阅读(1159) 评论(1) 推荐(0) 编辑

2018年7月10日

摘要: git diff commit_id 会生成最后一次提交到目前修改过的内容补丁 git diff commit_id1 commit_id2 会生成两次提交之间修改过的内容补丁 git format-patch -1 commit_id -o D:/patch 生成当前提交内容的补丁 git for 阅读全文
posted @ 2018-07-10 14:58 minrh 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 1、git reset head git撤销操作 2、git reset commit_id 3、git push 某一个commit git push <remote name> <commit hash>:<remote branch name> # Example: git push orig 阅读全文
posted @ 2018-07-10 14:16 minrh 阅读(95) 评论(0) 推荐(0) 编辑

导航