C# シングルトンパターンのクラス定義。そのまま継承されると危険なので「sealed 修飾子」をつける事。
public sealed class Csingleton
{
public static Csingleton Instance { get; private set;}
static Csingleton()
{
Instance = new Csingleton();
}
private Csingleton()
{
}
~Csingleton()
{
}
}