void Update() { if (_ShowHashtablePoolStatus) { HashtablePool.DebugConsole_ClaimInfo(); HashtablePool.DebugConsole_NewDetailInfo(); } if (_ShowArrayListPoolStatus) { ArrayListPool.DebugConsole_ClaimInfo(); } if (_ShowJSONNodePoolStatue) { JSONNodePool.DebugConsole_ClaimInfo(); } }
/// <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); }