using System; namespace System.ComponentModel { /// Specifies the display name for a property, event, or public void method which takes no arguments. // Token: 0x02000076 RID: 118 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Event)] public class DisplayNameAttribute : Attribute { /// Initializes a new instance of the class. // Token: 0x0600043C RID: 1084 RVA: 0x0000C850 File Offset: 0x0000AA50 public DisplayNameAttribute() { this.attributeDisplayName = string.Empty; } /// Initializes a new instance of the class using the display name. /// The display name. // Token: 0x0600043D RID: 1085 RVA: 0x0000C864 File Offset: 0x0000AA64 public DisplayNameAttribute(string displayName) { this.attributeDisplayName = displayName; } /// Determines if this attribute is the default. /// true if the attribute is the default value for this attribute class; otherwise, false. // Token: 0x0600043F RID: 1087 RVA: 0x0000C880 File Offset: 0x0000AA80 public override bool IsDefaultAttribute() { return this.attributeDisplayName != null && this.attributeDisplayName.Length == 0; } /// Returns the hash code for this instance. /// A hash code for the current . // Token: 0x06000440 RID: 1088 RVA: 0x0000C8A0 File Offset: 0x0000AAA0 public override int GetHashCode() { return this.attributeDisplayName.GetHashCode(); } /// Determines whether two instances are equal. /// true if the value of the given object is equal to that of the current object; otherwise, false. /// The to test the value equality of. // Token: 0x06000441 RID: 1089 RVA: 0x0000C8B0 File Offset: 0x0000AAB0 public override bool Equals(object obj) { if (obj == this) { return true; } DisplayNameAttribute displayNameAttribute = obj as DisplayNameAttribute; return displayNameAttribute != null && displayNameAttribute.DisplayName == this.attributeDisplayName; } /// Gets the display name for a property, event, or public void method that takes no arguments stored in this attribute. /// The display name. // Token: 0x1700011D RID: 285 // (get) Token: 0x06000442 RID: 1090 RVA: 0x0000C8E8 File Offset: 0x0000AAE8 public virtual string DisplayName { get { return this.attributeDisplayName; } } /// Gets or sets the display name. /// The display name. // Token: 0x1700011E RID: 286 // (get) Token: 0x06000443 RID: 1091 RVA: 0x0000C8F0 File Offset: 0x0000AAF0 // (set) Token: 0x06000444 RID: 1092 RVA: 0x0000C8F8 File Offset: 0x0000AAF8 protected string DisplayNameValue { get { return this.attributeDisplayName; } set { this.attributeDisplayName = value; } } /// Specifies the default value for the . This field is read-only. // Token: 0x04000166 RID: 358 public static readonly DisplayNameAttribute Default = new DisplayNameAttribute(); // Token: 0x04000167 RID: 359 private string attributeDisplayName; } }