Beispiel #1
0
 public virtual int[] GetIntArray(string key)
 {
     try
     {
         JSONArray array  = _data.GetJSONArray(key);
         int       length = array.Length();
         int[]     result = new int[length];
         for (int i = 0; i < length; i++)
         {
             result[i] = array.GetInt(i);
         }
         return(result);
     }
     catch (JSONException)
     {
         return(null);
     }
 }