コード例 #1
0
        private static void PrintS2()
        {
            SingletonThreadSafety s2 = SingletonThreadSafety.GetInstance;

            s2.PrintDetails("From Singleton Thread Safety S2");
        }
コード例 #2
0
        //SINGLETON THREAD SAFETY
        private static void PrintS1()
        {
            SingletonThreadSafety s1 = SingletonThreadSafety.GetInstance;

            s1.PrintDetails("From Singleton Thread Safety S1");
        }