using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "QueryClientIpRes")] [Serializable] public class QueryClientIpRes : IExtensible { [ProtoMember(1, IsRequired = false, Name = "ip", DataFormat = DataFormat.Default)] public string ip { get { return this._ip ?? ""; } set { this._ip = value; } } [XmlIgnore] [Browsable(false)] public bool ipSpecified { get { return this._ip != null; } set { bool flag = value == (this._ip == null); if (flag) { this._ip = (value ? this.ip : null); } } } private string _ip; private IExtension extensionObject; private bool ShouldSerializeip() { return this.ipSpecified; } private void Resetip() { this.ipSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }