/// <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)); } }
public IJsonNode Clone() { var num = new JsonNode_Array(); foreach (var item in this) { num.Add(item.Clone()); } return(num); }