04 2015 档案

摘要:因工作需要对文件进行是否被修改判断,整理的一段生成文件MD5码的代码: 1: public class FileHelper 2: { 3: /// 4: /// 对文件流进行MD5加密 5: /// 6: public static s... 阅读全文
posted @ 2015-04-30 16:45 Ants 阅读(4045) 评论(0) 推荐(1) 编辑
摘要:1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: using System.Reflection; 6: 7: namespace TestPro... 阅读全文
posted @ 2015-04-27 16:52 Ants 阅读(1318) 评论(0) 推荐(0) 编辑
摘要:因为项目的需要,整理了一段C#操作sftp的方法。 依赖的第三方类库名称为:SharpSSH 1.1.1.13. 代码如下: 1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5... 阅读全文
posted @ 2015-04-21 16:43 Ants 阅读(9598) 评论(7) 推荐(6) 编辑
摘要:在ASP.NET MVC4中,为了在解开Controller和Model的耦合,我们通常需要在Controller激活系统中引入IoC,用于处理用户请求的 Controller,让Controller依赖于ModelRepository的抽象而不是它的实现。我们可以在三个阶段使用IoC实现上面所说的... 阅读全文
posted @ 2015-04-17 17:37 Ants 阅读(2069) 评论(0) 推荐(1) 编辑

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