Пример #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;
     }
 }
Пример #2
0
 protected internal JSONArray(JSONElement par, string key) : base(par, key) => addKeyText(key, "[", 1);
Пример #3
0
 protected internal JSONObject(JSONElement par, string key) : base(par, key) => addKeyText(key, "{", 1);