Exemple #1
0
        public virtual void Add(string aKey, string s)
        {
            var jnode = JSONNodePool.Claim(typeof(JSONString));

            if (jnode == null)
            {
                jnode = new JSONString();
            }
            jnode.InitString(s);
            this.Add(aKey, jnode);
        }
Exemple #2
0
        void Update()
        {
            if (_ShowHashtablePoolStatus)
            {
                HashtablePool.DebugConsole_ClaimInfo();
                HashtablePool.DebugConsole_NewDetailInfo();
            }

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

            if (_ShowJSONNodePoolStatue)
            {
                JSONNodePool.DebugConsole_ClaimInfo();
            }
        }