예제 #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);