Beispiel #1
0
        public static void FromJsonObjectToDictionary(IVOSJsonObject jobj, IDictionary <string, int> dct)
        {
            string key = string.Empty;

            for (int i = 0; i < jobj.count; ++i)
            {
                key = jobj.GetKey(i);

                dct.Add(key, jobj.GetIntField(key));
            }
        }
Beispiel #2
0
 public void DeserializeFromJson(IVOSJsonObject jobj)
 {
     denominator = jobj.GetIntField("Denominator");
     numerator   = jobj.GetIntField("Numerator");
 }