public virtual void FromJSONObject(IJsonFormattable obj)
        {
            base.Clear();
            JArray jobj = obj as JArray;

            for (int i = 0; i < jobj.Length; i++)
            {
                T obj1 = (T)Activator.CreateInstance(typeof(T), new object[] { context });

                JArray jobji = jobj[i] as JArray;
                if (jobji != null)
                {
                    obj1.FromJSONObject(jobji);
                }
                else
                {
                    obj1.FromJSONObject((JObject)jobj[i]);
                }
                Add(obj1);
            }
        }
Ejemplo n.º 2
0
 protected virtual void FormatFormattable(IJsonFormattable formattable, JsonWriter writer)
 {
     formattable.Format(writer);
 }
Ejemplo n.º 3
0
 public void FromJSONObject(IJsonFormattable obj)
 {
 }
 public void FromJSONObject(IJsonFormattable obj)
 {
     throw new Exception("The method or operation is not implemented.");
 }