コード例 #1
0
        void Update()
        {
            if (_ShowHashtablePoolStatus)
            {
                HashtablePool.DebugConsole_ClaimInfo();
                HashtablePool.DebugConsole_NewDetailInfo();
            }

            if (_ShowArrayListPoolStatus)
            {
                ArrayListPool.DebugConsole_ClaimInfo();
            }

            if (_ShowJSONNodePoolStatue)
            {
                JSONNodePool.DebugConsole_ClaimInfo();
            }
        }
コード例 #2
0
        /// <summary>
        /// 递归回收. 慎用!!
        /// </summary>
        /// <param name="ht"></param>
        public static void ReleaseRecursion(ArrayList al)
        {
            if (al == null)
            {
                return;
            }

            var it = al.GetEnumerator();

            while (it.MoveNext())
            {
                if (it.Current is Hashtable)
                {
                    HashtablePool.ReleaseRecursion(it.Current as Hashtable);
                }
                else if (it.Current is ArrayList)
                {
                    ReleaseRecursion(it.Current as ArrayList);
                }
            }
            Release(al);
        }