Пример #1
0
 public static GameServerInfoHolder getInstance()
 {
     if (GameServerInfoHolder._instance == null)
     {
         GameServerInfoHolder._instance = new GameServerInfoHolder();
     }
     return(GameServerInfoHolder._instance);
 }
Пример #2
0
        public static GameServerInfoHolder getInstance()
        {
            bool flag = GameServerInfoHolder._instance == null;

            if (flag)
            {
                GameServerInfoHolder._instance = new GameServerInfoHolder();
            }
            return(GameServerInfoHolder._instance);
        }