Ejemplo n.º 1
0
        public static void Close()
        {
            if (IndexedModel <DataType> .IsOpened)
            {
                IndexedModel <DataType> .IsOpened = false;
#if LOG_DEBUG
                ClosableDebugger.Close(CLASSNAME);
#endif// LOG_DEBUG
                if (!ModelDisposer.IsWork)
                {
                    ModelDisposer.Unregist(typeof(IndexedModel <DataType>));
                }

                IndexedModel <DataType> .array = null;
            }
        }
Ejemplo n.º 2
0
        public static void Close()
        {
            if (Model <KeyType, DataType> .IsOpened)
            {
                Model <KeyType, DataType> .IsOpened = false;
#if LOG_DEBUG
                ClosableDebugger.Close(CLASSNAME);
#endif// LOG_DEBUG
                if (!ModelDisposer.IsWork)
                {
                    ModelDisposer.Unregist(typeof(Model <KeyType, DataType>));
                }

                Model <KeyType, DataType> .Clear();

                Model <KeyType, DataType> .UnregistUpdateCallbackAll();

                Model <KeyType, DataType> .GetKey = null;
                Model <KeyType, DataType> .map.Clear();
            }
        }
Ejemplo n.º 3
0
        public static void Close()
        {
            if (SequentialModel <DataType> .IsOpened)
            {
                SequentialModel <DataType> .IsOpened = false;
#if LOG_DEBUG
                ClosableDebugger.Close(CLASSNAME);
#endif// LOG_DEBUG
                if (!ModelDisposer.IsWork)
                {
                    ModelDisposer.Unregist(typeof(SequentialModel <DataType>));
                }

                var colls = SequentialModel <DataType> .collections;
                SequentialModel <DataType> .collections = null;

                for (int n = 0, cnt = colls.Length; n < cnt; ++n)
                {
                    colls[n].__InternalAccessList().Clear();
                }
            }
        }