上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页
摘要: 作者:ustinw 文章来源:博客园 介绍 很多有着不同开发背景得人都会比较熟悉单例模式。他们会发现每次他们要创建一个不同的单例类的时候,都不得不写同样得代码。使用新的C# 2.0的泛型,可以实现只写一次同样得代码。 使用 C# 2.0 泛型来完成单例模式的重用 使用 C# 2.0 的泛型,使得实现我所说的"单例提供者"成为可能。这是一个可用来创建单例类实例确不需要为每个特定的类... 阅读全文
posted @ 2006-11-28 23:45 forrestsun 阅读(716) 评论(2) 推荐(0) 编辑
摘要: /**//// /// 检测网络更新 /// private void InstallUpdateSyncWithInfo() { UpdateCheckInfo info = null; if (ApplicationDeployment.IsNetworkDeployed) ... 阅读全文
posted @ 2006-11-23 11:01 forrestsun 阅读(602) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { CultureInfo usrCulture = Thread.CurrentThread.CurrentCulture; RegionInfo DemoRegion = new RegionInfo(usrCulture.LCID); Conso... 阅读全文
posted @ 2006-11-21 20:20 forrestsun 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 关于THREAD线程中CurrentCulture与CurrentUICulture的学习及疑问 ?为什么第一次运行时不会发生变化? ?为什么通过CurrentUICulture 属性实例化的usCulture却没有发生变化? 阅读全文
posted @ 2006-11-20 19:39 forrestsun 阅读(1491) 评论(1) 推荐(0) 编辑
摘要: http://tech.ccidnet.com/art/1136/20021114/30763_1.html?channelid=1649&wd=&searchword=appdomain&client=pub-3653458698766474&q=&domains=ccidnet.com&sitesearch=ccidnet.com我们知道,进程是操作系统用于隔离众多正在运行的应用程序的机制。在... 阅读全文
posted @ 2006-11-08 09:30 forrestsun 阅读(484) 评论(0) 推荐(0) 编辑
摘要: http://www.microsoft.com/china/msdn/archives/library/dncscol/html/csharp05162002.aspEric GunnersonMicrosoft Corporation 2002 年 5 月 17 日 请从 MSDN Online Code Center 下载 supergraphfiles.exe(英文)。 这个月,我刚开完 ... 阅读全文
posted @ 2006-11-08 09:26 forrestsun 阅读(855) 评论(0) 推荐(0) 编辑
摘要: http://www.tongyi.net/develop/.net/1014766.html 现在是虚拟机时代了,Java称作JVM(Java 虚拟机),.NET称作 FrameWork(框架)。对照着两个体系,当中有很多异同,不过我感兴趣的是.NET中称作“AppDomain”(应用程序域)的东东。这个概念如何准确的理解,对于.NET开发来讲有何意义?使用它需要注意些... 阅读全文
posted @ 2006-11-08 09:16 forrestsun 阅读(1366) 评论(0) 推荐(0) 编辑
摘要: 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace ConsoleApplication1 6{ 7 class Program 8 { 9 static void Main(string[] args)10 {11 ... 阅读全文
posted @ 2006-11-03 11:28 forrestsun 阅读(424) 评论(1) 推荐(0) 编辑
摘要: 下载找这首歌找了很长时间,在网上放的很多都是从电影里剪出来的,今天总算找到了一个相对完美的,只是文件只有1M多点,可能对音质要求很高的用户差了点:)下载后请去掉后缀RAR就可以了. 阅读全文
posted @ 2006-11-02 12:53 forrestsun 阅读(996) 评论(10) 推荐(0) 编辑
摘要: http://smartstone.cnblogs.com/archive/2006/06/08/420862.html可能的原因是:在你的项目中引用了第三方组件,并且这个第三方组件是个商业组件,他在组件的主使用类定义了LicenseProvider(typeof(LicFileLicenseProvider))这个Attribute。 VS2005在编译时检测到这个类的时候,会检查到组件使用的... 阅读全文
posted @ 2006-08-11 12:38 forrestsun 阅读(1463) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页