// Code
public class SingletonDesignPattern
{
private static SingletonDesignPattern instance = new SingletonDesignPattern();
private SingletonDesignPattern() { }
public static SingletonDesignPattern GetInstance
{
get { return instance; } //can only be get no set
}
}
// Usage
SingletonDesignPattern singleton =
SingletonDesignPattern.GetInstance;
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)