Пример #1
0
        public static DoorSwitch Singleton()
        {
            if (_instance == null)
            {
                _instance = new DoorSwitch();
            }

            if (_doorSwitchItems == null)
            {
                _doorSwitchItems = new List<DoorSwitchDTO>();
            }
            return _instance;
        }
Пример #2
0
        public static DoorSwitch Singleton()
        {
            if (_instance == null)
            {
                _instance = new DoorSwitch();
            }

            if (_doorSwitchItems == null)
            {
                _doorSwitchItems = new List <DoorSwitchDTO>();
            }
            return(_instance);
        }