摘要: 1,就是一个类,直接/间接继承自Attribute 2,在给一个类或方法添加特性后,实际在元元素内部产生了IL,但是我们没办法直接使用,而且在metadata里面会有记录 阅读全文
posted @ 2018-05-21 23:33 Victor.lu 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 定义: System.Reflection 命名空间下,.Net框架提供帮助类库,可以读取并使用metadata(元数据),相当于内容清单。 1,使用示例: Assembly assembly=Assembly.Load("Common");//dll名称 ,从当前目录加载 2,工厂作用:主要用于创 阅读全文
posted @ 2018-05-20 23:43 Victor.lu 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1,static 在类中定义后,只初始化一次,放在内存中。 2,大文件分批读取 3,使用递归必须要明确何时会跳出 4,错误点,记录日志 5,序列化(对象转为字符串)与反序列化(字符串转为对象) 6,lambda表达式,实质指向的一个方法(作用) 7,var (语法糖)匿名类,在编译后,有生成一个真实 阅读全文
posted @ 2018-05-15 23:03 Victor.lu 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 很多系统要求防止用户被重复登陆,我们通常思维是当有用户重复登陆时要禁止他再登陆进去,提示他该账号已经有人在使用中.然而这样有个问题很难解决,就是系统很难实时捕捉到该账号是否还在使用中,如当用户非正常退出或者遇到停电等,系统只好等到Session超时后才能知道该账号已经下线.在Session超时之前这 阅读全文
posted @ 2014-12-04 13:05 Victor.lu 阅读(2861) 评论(0) 推荐(0) 编辑
摘要: object fontname = "Wingdings 2"; object uic = true; doc.Bookmarks.get_Item(ref lblmark).Range.InsertSymbol(-4014, ref fontname, ref uic, ref missing)... 阅读全文
posted @ 2014-05-29 17:49 Victor.lu 阅读(1628) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using Word = Microsoft.Office.Interop.Word;namespace ELO.BLL{ /* * Descrip... 阅读全文
posted @ 2014-05-24 19:17 Victor.lu 阅读(1315) 评论(0) 推荐(1) 编辑
摘要: 筛选出 2012-2-1 的数据private DataTable GetData() { DataTable dt = new DataTable(); dt.Columns.Add("Id", typeof(int)); ... 阅读全文
posted @ 2014-05-09 11:06 Victor.lu 阅读(340) 评论(0) 推荐(0) 编辑
摘要: rel是有进有出,out是只出不进。经典! 阅读全文
posted @ 2014-05-06 16:29 Victor.lu 阅读(150) 评论(0) 推荐(0) 编辑
摘要: *先必须要引用一个js jquery.cookie.js1,首先写入jsCookied//浏览记录 写入JSCookied 开始 var img=$("#ProductImgurl").attr("jqimg"); var name=$("#ProductDetail_ctl00_La... 阅读全文
posted @ 2014-04-18 15:35 Victor.lu 阅读(8995) 评论(3) 推荐(0) 编辑
摘要: using System;using System.IO;namespace ConsoleApplication7{ /// /// Class1 摘要说明 /// class Class1 { /// /// 应用程序主入口点 /// [STAThread] static void Main(string[] args) { string dirp=@"d:\\d"; DirectoryInfo mydir = new DirectoryInfo(dirp); foreach (FileSystemInfo fsi in mydir.GetFileSyste... 阅读全文
posted @ 2014-03-27 13:44 Victor.lu 阅读(922) 评论(0) 推荐(0) 编辑