using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "MapIntItem")] [Serializable] public class MapIntItem : IExtensible { [ProtoMember(1, IsRequired = false, Name = "key", DataFormat = DataFormat.TwosComplement)] public ulong key { get { return this._key ?? 0UL; } set { this._key = new ulong?(value); } } [XmlIgnore] [Browsable(false)] public bool keySpecified { get { return this._key != null; } set { bool flag = value == (this._key == null); if (flag) { this._key = (value ? new ulong?(this.key) : null); } } } [ProtoMember(2, IsRequired = false, Name = "value", DataFormat = DataFormat.TwosComplement)] public uint value { get { return this._value ?? 0u; } set { this._value = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool valueSpecified { get { return this._value != null; } set { bool flag = value == (this._value == null); if (flag) { this._value = (value ? new uint?(this.value) : null); } } } private ulong? _key; private uint? _value; private IExtension extensionObject; private bool ShouldSerializekey() { return this.keySpecified; } private void Resetkey() { this.keySpecified = false; } private bool ShouldSerializevalue() { return this.valueSpecified; } private void Resetvalue() { this.valueSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }