public override object ReadJson(JsonReader Reader, Type ObjectType, object ExistingValue, JsonSerializer Serializer)
        {
            DataSlot DataSlot = (DataSlot)ExistingValue;

            if (DataSlot == null)
            {
                DataSlot = new DataSlot();
            }

            DataSlot.Load(JObject.Load(Reader));

            return(DataSlot);
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Loads this instance from json.
        /// </summary>
        public void Load(JArray Array)
        {
            for (int I = 0; I < Array.Count; I++)
            {
                JArray Array2 = (JArray)Array[I];

                for (int J = 0; J < Array2.Count; J++)
                {
                    DataSlot DataSlot = new DataSlot();
                    DataSlot.Load(Array2[J]);
                    this.Slots[I].Add(DataSlot);
                }
            }
        }