Exemple #1
0
        public static LazyInitialization GetInstance()
        {
            if (_instance == null)
            {
                _instance = new LazyInitialization();
            }

            return(_instance);
        }
Exemple #2
0
        private static void Write2()
        {
            LazyInitialization lazy1 = LazyInitialization.getInstance();

            lazy1.WriteMessage("ben ikinci threadim");
        }