这与设计模式有关 [英] This is regarding Design Pattern

查看:86
本文介绍了这与设计模式有关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai All


我是设计模式的新手,任何人都可以通过单例"示例获得帮助.我需要使用单例方法的样本.我需要使用单例方法的SQL Access处理程序.

Hai All


I am new to design patterns could any one help with the sample of "singleton". I am i need sample which will use singleton method. I need a SQL Access handler using singleton method.

推荐答案

如果您尝试在.net中实现单例模式,则MSDN文档应该会很有帮助:

http://msdn.microsoft.com/en-us/library/ff650316.aspx [ ^ ]
The MSDN documentation should be of great help if you''re trying to implement the singleton pattern in .net:

http://msdn.microsoft.com/en-us/library/ff650316.aspx[^]


此处是有关Singleton模式的出色文章.
作者提供了实现Singleton模式的各个方面,并为您提供了使用它的最佳方法!
http://csharpindepth.com/Articles/General/Singleton.aspx [ http://msdn.microsoft.com/en-us/library/ee817670.aspx [ ^ ]

祝你好运!
Here is an excellent article regarding the Singleton Pattern.
The author has given various aspects of implementing the Singleton pattern and provides you the best way to use it!
http://csharpindepth.com/Articles/General/Singleton.aspx[^]

Here is another sample from MSDN :
http://msdn.microsoft.com/en-us/library/ee817670.aspx[^]

Good luck!


您可能会找到 [
You might find this[^] discussion useful.


这篇关于这与设计模式有关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆