예제 #1
0
        public static PokemonSingleton GetInstance()
        {
            if (instance == null)
            {
                instance = new PokemonSingleton();
            }

            return(instance);
        }
예제 #2
0
 private static void Main(string[] args)
 {
     PokemonSingleton pokemon = PokemonSingleton.GetInstance();
 }