Files
Dec2017-Script-Dump/System/ComponentModel/RecommendedAsConfigurableAttribute.cs
2026-06-04 11:42:34 +02:00

72 lines
3.7 KiB
C#

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