1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/// <summary>
/// Singleton
/// </summary>
public sealed class Singleton
{
private readonly static Singleton SingletonInstance = new Singleton();
/// <summary>
/// Gets the get the Singleton instance.
/// </summary>
/// <value>The get instance.</value>
public static Singleton GetInstance
{
get
{
return SingletonInstance;
}
}
private Singleton()
{
throw new NotImplementedException();
}
}
|