예제 #1
0
 /// <summary>
 /// Decode array in message.
 /// </summary>
 private void decodeArray(JsonNode_Array list, string type, JsonNode_Object proto)
 {
     if (this.util.isSimpleType(type))
     {
         int length = (int)decodeUInt32();
         for (int i = 0; i < length; i++)
         {
             list.Add(this.decodeProp(type, null));
         }
     }
     else
     {
         list.Add(this.decodeProp(type, proto));
     }
 }
예제 #2
0
파일: MyJson.cs 프로젝트: wangfei0/NeoDun
        public IJsonNode Clone()
        {
            var num = new JsonNode_Array();

            foreach (var item in this)
            {
                num.Add(item.Clone());
            }
            return(num);
        }