Esempio n. 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this is JSONObject)
         {
             add(!empty, "}", -1);
         }
         else if (this is JSONArray)
         {
             add(!empty, "]", -1);
         }
         if (parent != null)
         {
             parent.isCurrent = true;
         }
         parent = null;
     }
 }
Esempio n. 2
0
 protected internal JSONArray(JSONElement par, string key) : base(par, key) => addKeyText(key, "[", 1);
Esempio n. 3
0
 protected internal JSONObject(JSONElement par, string key) : base(par, key) => addKeyText(key, "{", 1);