I have a singleton class implemented as follows-

// .NET Singleton
sealed class Singleton
{
private Singleton() {}
public static readonly Singleton Instance = new Singleton();
}

as suggested on the MSDN website (http://msdn.microsoft.com/library/de...asp?frame=true)

However, the instance keeps getting garbage collected (that is, the destructor is called).

I read an article that said this was a bug in Java 1.1. Is it the same with C#?