using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "TShowTopListArg")] [Serializable] public class TShowTopListArg : IExtensible { [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] public int type { get { return this._type ?? 0; } set { this._type = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool typeSpecified { get { return this._type != null; } set { bool flag = value == (this._type == null); if (flag) { this._type = (value ? new int?(this.type) : null); } } } [ProtoMember(2, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] public int index { get { return this._index ?? 0; } set { this._index = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool indexSpecified { get { return this._index != null; } set { bool flag = value == (this._index == null); if (flag) { this._index = (value ? new int?(this.index) : null); } } } private int? _type; private int? _index; private IExtension extensionObject; private bool ShouldSerializetype() { return this.typeSpecified; } private void Resettype() { this.typeSpecified = false; } private bool ShouldSerializeindex() { return this.indexSpecified; } private void Resetindex() { this.indexSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }