using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "TeamSelect")] [Serializable] public class TeamSelect : IExtensible { [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] public long roleid { get { return this._roleid ?? 0L; } set { this._roleid = new long?(value); } } [XmlIgnore] [Browsable(false)] public bool roleidSpecified { get { return this._roleid != null; } set { bool flag = value == (this._roleid == null); if (flag) { this._roleid = (value ? new long?(this.roleid) : 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 long? _roleid; private int? _index; private IExtension extensionObject; private bool ShouldSerializeroleid() { return this.roleidSpecified; } private void Resetroleid() { this.roleidSpecified = 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); } } }