コード例 #1
0
ファイル: Program.cs プロジェクト: DavidLees/DesignPatterns
        public static void RunSingleton()
        {
            Singleton testSingleton = Singleton.Instance;

            Console.WriteLine("Found a new Singleton with name " + testSingleton.Name);
            Console.WriteLine("Running Singleton:");
            testSingleton.Execute();
        }