/// <summary> /// Deserialization constructor /// </summary> protected AdvancedList(SerializationInfo info, StreamingContext context) { var items = info.GetValue("Items", typeof(T[])) as T[]; if (items != null) { AddRange(items); } PersistAssist.Deserialize(this, info, context); }
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("SubRecords", SubRecords.ToArray()); PersistAssist.Serialize(this, info, context); }