예제 #1
0
        /// <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);
        }
예제 #2
0
 void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
 {
     info.AddValue("SubRecords", SubRecords.ToArray());
     PersistAssist.Serialize(this, info, context);
 }