using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "DHRArg")] [Serializable] public class DHRArg : IExtensible { [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] public DHRReqOp op { get { return this._op ?? DHRReqOp.DHR_OP_LIST; } set { this._op = new DHRReqOp?(value); } } [XmlIgnore] [Browsable(false)] public bool opSpecified { get { return this._op != null; } set { bool flag = value == (this._op == null); if (flag) { this._op = (value ? new DHRReqOp?(this.op) : null); } } } [ProtoMember(2, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] public int id { get { return this._id ?? 0; } set { this._id = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool idSpecified { get { return this._id != null; } set { bool flag = value == (this._id == null); if (flag) { this._id = (value ? new int?(this.id) : null); } } } private DHRReqOp? _op; private int? _id; private IExtension extensionObject; private bool ShouldSerializeop() { return this.opSpecified; } private void Resetop() { this.opSpecified = false; } private bool ShouldSerializeid() { return this.idSpecified; } private void Resetid() { this.idSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }