public object Deserialize(rdtSerializerRegistry registry) { Array array = Array.CreateInstance(this.m_type, this.m_objects.Count); for (int i = 0; i < this.m_objects.Count; i++) { array.SetValue(registry.Deserialize(this.m_objects[i]), i); } return(array); }
public object Deserialize(rdtSerializerRegistry registry) { IList list = (IList)typeof(List <>).MakeGenericType(new System.Type[] { this.m_type }).GetConstructor(System.Type.EmptyTypes).Invoke(null); foreach (object obj2 in this.m_objects) { object obj3 = registry.Deserialize(obj2); list.Add(obj3); } return(list); }
public void Deserialise(rdtSerializerRegistry registry) { List <rdtTcpMessageComponents.Property> list = this.m_value as List <rdtTcpMessageComponents.Property>; if (list != null) { for (int i = 0; i < list.Count; i++) { list[i].Deserialise(registry); } } else { this.m_value = registry.Deserialize(this.m_value); } }