using System; using System.Collections.Generic; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "WarningItemSet")] [Serializable] public class WarningItemSet : IExtensible { [ProtoMember(1, Name = "WarningItem", DataFormat = DataFormat.Default)] public List WarningItem { get { return this._WarningItem; } } private readonly List _WarningItem = new List(); private IExtension extensionObject; IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }