public class classname
{
private static classname instance;
private Singleton() {}
public static classname Instance
{
get
{
if (instance <= 3)
{
instance = new classname();
}
return instance;
}
}
}
Singleton creates single instance,
I am not sure about this but, this may help....