寺委书记

Good good study, day day up!

导航

01 2011 档案

摘要:原文 http://www.alteridem.net/2008/05/20/read-properties-from-an-msi-file/It took a fair amount of searching and code tweaking, but I finally worked it all out. Add a reference to the COM Microsoft Windows Installer Object Library.Add a using WindowsInstaller;Add the following static method to your co 阅读全文

posted @ 2011-01-17 09:40 MonkChen 阅读(777) 评论(0) 推荐(0)

摘要:昨天发现一个现象, WCF回调接口不可直接继承,它的直接继承体系只能有一层,这话怎么说都别扭,还是举例说明吧:1.WCF 服务契约接口可以继承,伪代码如下:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--同时,你设计了一个实现类publicclassServiceBase:IServiceBase{ publicvoidFooBase(){    //Dosomethinghere}}由于业务的需要,你需要扩展服务接口,于是设计一个新接口pu 阅读全文

posted @ 2011-01-06 10:46 MonkChen 阅读(736) 评论(0) 推荐(0)

摘要:枚举资源文件中文件名的方法,备忘,代码如下:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--varrs=Resource1.ResourceManager.GetResourceSet(System.Globalization.CultureInfo.CurrentCulture,true,true).OfTypeDictionaryEntry();stringstr=string.Empty;foreach(DictionaryEntry 阅读全文

posted @ 2011-01-05 10:28 MonkChen 阅读(241) 评论(0) 推荐(0)