using System; namespace System.ComponentModel { /// Indicates that the property grid should refresh when the associated property value changes. This class cannot be inherited. // Token: 0x020000BE RID: 190 [AttributeUsage(AttributeTargets.All)] public sealed class RefreshPropertiesAttribute : Attribute { /// Initializes a new instance of the class. /// A value indicating the nature of the refresh. // Token: 0x06000656 RID: 1622 RVA: 0x00010B24 File Offset: 0x0000ED24 public RefreshPropertiesAttribute(RefreshProperties refresh) { this.refresh = refresh; } /// Gets the refresh properties for the member. /// A that indicates the current refresh properties for the member. // Token: 0x170001A5 RID: 421 // (get) Token: 0x06000658 RID: 1624 RVA: 0x00010B58 File Offset: 0x0000ED58 public RefreshProperties RefreshProperties { get { return this.refresh; } } /// Overrides the object's method. /// true if the specified object is the same; otherwise, false. /// The object to test for equality. // Token: 0x06000659 RID: 1625 RVA: 0x00010B60 File Offset: 0x0000ED60 public override bool Equals(object obj) { return obj is RefreshPropertiesAttribute && (obj == this || ((RefreshPropertiesAttribute)obj).RefreshProperties == this.refresh); } /// Returns the hash code for this object. /// The hash code for the object that the attribute belongs to. // Token: 0x0600065A RID: 1626 RVA: 0x00010B8C File Offset: 0x0000ED8C public override int GetHashCode() { return this.refresh.GetHashCode(); } /// Gets a value indicating whether the current value of the attribute is the default value for the attribute. /// true if the current value of the attribute is the default; otherwise, false. // Token: 0x0600065B RID: 1627 RVA: 0x00010BA0 File Offset: 0x0000EDA0 public override bool IsDefaultAttribute() { return this == RefreshPropertiesAttribute.Default; } // Token: 0x040001DD RID: 477 private RefreshProperties refresh; /// Indicates that all properties are queried again and refreshed if the property value is changed. This field is read-only. // Token: 0x040001DE RID: 478 public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute(RefreshProperties.All); /// Indicates that no other properties are refreshed if the property value is changed. This field is read-only. // Token: 0x040001DF RID: 479 public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute(RefreshProperties.None); /// Indicates that all properties are repainted if the property value is changed. This field is read-only. // Token: 0x040001E0 RID: 480 public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute(RefreshProperties.Repaint); } }