示例#1
0
        private static void SingletonEagerAccess2()
        {
            SingletonEagerLoding instance2 = SingletonEagerLoding.GetInstance;

            instance2.PrintMessage("Instance 2");
        }
示例#2
0
        private static void SingletonEagerAccess1()
        {
            SingletonEagerLoding instance1 = SingletonEagerLoding.GetInstance;

            instance1.PrintMessage("Instance 1");
        }