随笔 - 25  文章 - 10 评论 - 11 阅读 - 10万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

11 2006 档案
寻找配置文件路径
摘要:try{//Extracttheconfigfilepathfromthedefault.configfilestringconfigPath=ConfigurationManager.AppSettings["configPath"];//Ifthedefault.configfileismissingif(configPath==null){//GettheassemblyAssemblyas... 阅读全文
posted @ 2006-11-29 15:54 cinger 阅读(383) 评论(0) 推荐(0) 编辑
可移动窗口的制作
摘要:将form从下面的FormBase类继承,拖动form上的任意一点都可移动.并且解决了原方案中如果将formBorderStyle设置成none之后,MouseMove的第一下有个跳动的问题.可用于不规则窗体的制作.publicclassFormBase:Form{Declarations#regionDeclarationsprivatebooldrag=false;privatePointst... 阅读全文
posted @ 2006-11-04 08:47 cinger 阅读(355) 评论(0) 推荐(0) 编辑
我对Attribute的理解
摘要:Attribute从本质上讲,就是对C#中各种元素的描述.元素的种类如下: 可以描述的元素Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public enum AttributeTargets{ All=16383, Assembly=1... 阅读全文
posted @ 2006-11-02 20:18 cinger 阅读(367) 评论(0) 推荐(0) 编辑
将业务实体组件序列化为二进制格式
摘要:EmployeeEntity employee = new EmployeeEntity(); employee.EmployeeNumber = "1234"; employee.FirstName = "lincoln"; employee.LastName = "lee"; employee.InputDateTime ... 阅读全文
posted @ 2006-11-02 19:20 cinger 阅读(342) 评论(0) 推荐(0) 编辑
浅析StackTrace
摘要:我们在学习函数调用时,都知道每个函数都拥有自己的栈空间。一个函数被调用时,就创建一个新的栈空间。那么通过函数的嵌套调用最后就形成了一个函数调用堆栈。在c#中,使用StackTrace记录这个堆栈。你可以在程序运行过程中使用StackTrace得到当前堆栈的信息。 class Program { static void Main(string[] args) ... 阅读全文
posted @ 2006-11-02 09:44 cinger 阅读(19445) 评论(3) 推荐(0) 编辑

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