Save OpenFileDialog
摘要:1.1.1. The initial default directory is the user's temp directory. After the first time any file is opened or saved, the default directory will be whichever directory was last used. this.openFileDial...
阅读全文
posted @
2010-05-20 12:04
刘宁Toby
阅读(182)
推荐(1)
Environment.CurrentDirectory & System.Windows.Forms.Application.StartupPath
摘要:Sometime we can get ..\bin\Debug by using Environment.CurrentDirectory or System.Windows.Forms.Application.StartupPath. So what’s the difference? I suggest that you use System.Windows.Forms.App...
阅读全文
posted @
2010-05-17 15:40
刘宁Toby
阅读(387)
推荐(0)
Strongly Typed Collection ArrayList and Array
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1.Try using arrays insteadArrays will generally be more efficient in terms of access speed and memory ...
阅读全文
posted @
2010-04-28 17:16
刘宁Toby
阅读(280)
推荐(0)
面向对象之多态
摘要:多态实际上是多个对象的抽象,实现将接口(不特指关键字interface)与对象具体实现进行分离的技术. 用户可以通过interface 或者abstract 类定义接口,使用户能够通过接口动态地访问具体对象。
阅读全文
posted @
2010-02-27 17:53
刘宁Toby
阅读(161)
推荐(0)
C#基础概念二十五问(转)
摘要:http://www.cnblogs.com/xugang/archive/2007/10/23/934319.html
阅读全文
posted @
2010-02-25 21:02
刘宁Toby
阅读(221)
推荐(0)
C# 字符串性能
摘要:Written By Dr Herbie [2]Translated By Allen LeeIntroduction你在代码中处理字符串的方法可能会对性能产生令人吃惊的影响。程序中需要考虑两个由于使用字符串而产生的问题:临时字符串变量的使用和字符串连接。Background1.String是引用类型,在堆上分配内存。2.String运算时会产生一个新的实例。当看到 myString.ToUppe...
阅读全文
posted @
2009-08-25 22:28
刘宁Toby
阅读(503)
推荐(0)