示例#1
0
        public static EventSingleton Instance()
        {
            // Uses lazy initialization.
            // Note: this is not thread safe.
            if (_singleton == null)
            {
                _singleton = new EventSingleton();
            }

            return(_singleton);
        }
        public static EventSingleton Instance()
        {
            // Uses lazy initialization.
            // Note: this is not thread safe.
            if (_singleton == null)
            {
                _singleton = new EventSingleton();
            }

            return _singleton;
        }