摘要:// 打包XML public string Pack() { string result = string.Empty; try { StringWriter sw = new StringWriter(); XmlWriter xw = XmlWriter.Create(sw); xw.WriteProcessingInstruction("xml", "version=\"1.0\" enc...
阅读全文
08 2010 档案
摘要:// 打包XML public string Pack() { string result = string.Empty; try { StringWriter sw = new StringWriter(); XmlWriter xw = XmlWriter.Create(sw); xw.WriteProcessingInstruction("xml", "version=\"1.0\" enc...
阅读全文
摘要:一、Service的代码:再添加完这些代码之后一定要记得“添加安装程序”二、安装Windows服务: 安装 卸载参考:http://www.vchome.net/dotnet/dotnetdocs/dotnet38.htm总结C#创建Windows的步骤:1、创建项目,添加、关联执行代码。2、创建Service的安装程序。3、设定serviceProcessInstal...
阅读全文
摘要:->检查条件,如果该条件为false,则输出调用堆栈。http://msdn.microsoft.com/zh-cn/library/kssw4w7z(VS.80).aspx
阅读全文
摘要:【原帖】:http://www.vckbase.com/document/viewdoc/?id=609有两种方式注册组件:一种是调用regsvr32.exe:例如我们运行regsvr32.exe c:\test.dll来注册位于C:盘根目录下的test.dll。另外一种是在MTS(微软事务服务器)中注册。MTS是值得推荐的,因为它具有下列优点:1、动态卸载平衡,提高组件和基于组件的应用程序的升级...
阅读全文
摘要:IP地址:(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(2...
阅读全文
摘要:[原帖]:http://zhq.ahau.edu.cn/blog/article.asp?id=286
阅读全文
摘要:System.Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
阅读全文
摘要:Dispatcher.Invoke(new EventHandler(this.ShowSchemeInfo), sender, e);
阅读全文
摘要:[原帖]:http://dotnet.chinaitlab.com/ASPNET/791249.htmlC#时间间隔计算可以通过时间刻度类TimSpan类实现,这是一个系统类。C#时间间隔计算举例说明:实现两个时间之间C#时间间隔计算: C#时间间隔计算的一些说明:TimeSpan值包含了许多属性与方法,用于访问或处理一个TimeSpan值 下面的列表涵盖了其中的一部分: Add:与另一个Time...
阅读全文
摘要:[原帖]:http://dev.yesky.com/msdn/156/2551656.shtml ref是传递参数的地址,out是返回值,两者有一定的相同之处,不过也有不同点。 使用ref前必须对变量赋值,out不用。 out的函数会清空变量,即使变量已经赋值也不行,退出函数时所有out引用的变量都要赋值,ref引用的可以修改,也可以不修改。 区别可以参看下面的代码:using Syst...
阅读全文
|