using System; namespace System.ComponentModel { /// Specifies that the property can be used as an application setting. // Token: 0x020000B8 RID: 184 [Obsolete("Use SettingsBindableAttribute instead of RecommendedAsConfigurableAttribute")] [AttributeUsage(AttributeTargets.Property)] public class RecommendedAsConfigurableAttribute : Attribute { /// Initializes a new instance of the class. /// true if the property this attribute is bound to can be used as an application setting; otherwise, false. // Token: 0x0600062A RID: 1578 RVA: 0x0000FCAC File Offset: 0x0000DEAC public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable) { this.recommendedAsConfigurable = recommendedAsConfigurable; } /// Gets a value indicating whether the property this attribute is bound to can be used as an application setting. /// true if the property this attribute is bound to can be used as an application setting; otherwise, false. // Token: 0x1700019C RID: 412 // (get) Token: 0x0600062C RID: 1580 RVA: 0x0000FCE0 File Offset: 0x0000DEE0 public bool RecommendedAsConfigurable { get { return this.recommendedAsConfigurable; } } /// Indicates whether this instance and a specified object are equal. /// true if is equal to this instance; otherwise, false. /// Another object to compare to. // Token: 0x0600062D RID: 1581 RVA: 0x0000FCE8 File Offset: 0x0000DEE8 public override bool Equals(object obj) { return obj is RecommendedAsConfigurableAttribute && ((RecommendedAsConfigurableAttribute)obj).RecommendedAsConfigurable == this.recommendedAsConfigurable; } /// Returns the hash code for this instance. /// A hash code for the current . // Token: 0x0600062E RID: 1582 RVA: 0x0000FD18 File Offset: 0x0000DF18 public override int GetHashCode() { return this.recommendedAsConfigurable.GetHashCode(); } /// Indicates whether the value of this instance is the default value for the class. /// true if this instance is the default attribute for the class; otherwise, false. // Token: 0x0600062F RID: 1583 RVA: 0x0000FD28 File Offset: 0x0000DF28 public override bool IsDefaultAttribute() { return this.recommendedAsConfigurable == RecommendedAsConfigurableAttribute.Default.RecommendedAsConfigurable; } // Token: 0x040001C7 RID: 455 private bool recommendedAsConfigurable; /// Specifies the default value for the , which is . This static field is read-only. // Token: 0x040001C8 RID: 456 public static readonly RecommendedAsConfigurableAttribute Default = new RecommendedAsConfigurableAttribute(false); /// Specifies that a property cannot be used as an application setting. This static field is read-only. // Token: 0x040001C9 RID: 457 public static readonly RecommendedAsConfigurableAttribute No = new RecommendedAsConfigurableAttribute(false); /// Specifies that a property can be used as an application setting. This static field is read-only. // Token: 0x040001CA RID: 458 public static readonly RecommendedAsConfigurableAttribute Yes = new RecommendedAsConfigurableAttribute(true); } }