Example #1
0
 public static You GetInstance()
 {
     if (_instance == null)
     {
         _instance = new You();
     }
     return(_instance);
 }
Example #2
0
 public static void Run()
 {
     Log.Info("Singleton Pattern");
     Me.Instance.Print();
     You.GetInstance().Print();
 }