Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Singleton
- {
- private static Singleton instance=null;
- private Singleton()
- {
- }
- public static Singleton Instance
- {
- get
- {
- if (instance==null)
- {
- instance = new Singleton();
- }
- return instance;
- }
- }
- }
Add Comment
Please, Sign In to add comment