2009년 06월 26일
C# singleton 구현
c# 언어의 특징을 살린 singleton 구현
class A
{
static readonly A m_instance = new A();
A() {}
public static A Instance
{
get { return m_instance; }
}
}
class A
{
static readonly A m_instance = new A();
A() {}
public static A Instance
{
get { return m_instance; }
}
}
# by | 2009/06/26 01:33 | c# | 트랙백 | 덧글(0)



