using System; using System.Reflection; using System.Runtime.InteropServices; namespace System.Runtime.Remoting.Metadata { /// Customizes SOAP generation and processing for a field. This class cannot be inherited. // Token: 0x0200042B RID: 1067 [AttributeUsage(AttributeTargets.Field)] [ComVisible(true)] public sealed class SoapFieldAttribute : SoapAttribute { /// You should not use this property; it is not used by the .NET Framework remoting infrastructure. /// A . // Token: 0x1700082C RID: 2092 // (get) Token: 0x06002955 RID: 10581 RVA: 0x000851EC File Offset: 0x000833EC // (set) Token: 0x06002956 RID: 10582 RVA: 0x000851F4 File Offset: 0x000833F4 public int Order { get { return this._order; } set { this._order = value; } } /// Gets or sets the XML element name of the field contained in the attribute. /// The XML element name of the field contained in this attribute. // Token: 0x1700082D RID: 2093 // (get) Token: 0x06002957 RID: 10583 RVA: 0x00085200 File Offset: 0x00083400 // (set) Token: 0x06002958 RID: 10584 RVA: 0x00085208 File Offset: 0x00083408 public string XmlElementName { get { return this._elementName; } set { this._isElement = value != null; this._elementName = value; } } /// Returns a value indicating whether the current attribute contains interop XML element values. /// true if the current attribute contains interop XML element values; otherwise, false. // Token: 0x06002959 RID: 10585 RVA: 0x00085220 File Offset: 0x00083420 public bool IsInteropXmlElement() { return this._isElement; } // Token: 0x0600295A RID: 10586 RVA: 0x00085228 File Offset: 0x00083428 internal override void SetReflectionObject(object reflectionObject) { FieldInfo fieldInfo = (FieldInfo)reflectionObject; if (this._elementName == null) { this._elementName = fieldInfo.Name; } } // Token: 0x04000FD5 RID: 4053 private int _order; // Token: 0x04000FD6 RID: 4054 private string _elementName; // Token: 0x04000FD7 RID: 4055 private bool _isElement; } }