关于辛格尔顿班 [英] about Singleton class
本文介绍了关于辛格尔顿班的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
有人可以给我提供任何小型项目吗,这将教我如何实现Singleton Design模式.
[添加]
OP还希望该项目中的线程安全. :-D
[/addition]
Hello frends,
can anybody provide me any kind of small project which will teach me how to implement Singleton Design pattern
[Addition]
OP Also wants a thread safety in that project. :-D
[/addition]
推荐答案
请参阅本文. 此 [
Hi,
Refer this article. THIS[^]
^ ]?
您明白了.
单一设计模式:线程安全的Singleton [在C#中实现单例模式 [
You got it.
Singleton design pattern: Thread-safe Singleton[^]
FYI another one which is good too. Implementing the Singleton Pattern in C#[^]
这篇关于关于辛格尔顿班的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文