예제 #1
0
        private int GetValue(JsonFields fields, string key)
        {
            if (fields[key].Value is JValue value)
            {
                return((int)(long)value.Value);
            }

            return(0);
        }
예제 #2
0
 public JsonObject()
 {
     Fields = new JsonFields(this);
 }