using System;
namespace System.ComponentModel
{
/// Specifies whether a property should be localized. This class cannot be inherited.
// Token: 0x020000AA RID: 170
[AttributeUsage(AttributeTargets.All)]
public sealed class LocalizableAttribute : Attribute
{
/// Initializes a new instance of the class.
/// true if a property should be localized; otherwise, false.
// Token: 0x06000579 RID: 1401 RVA: 0x0000E4DC File Offset: 0x0000C6DC
public LocalizableAttribute(bool localizable)
{
this.localizable = localizable;
}
/// Gets a value indicating whether a property should be localized.
/// true if a property should be localized; otherwise, false.
// Token: 0x1700016E RID: 366
// (get) Token: 0x0600057B RID: 1403 RVA: 0x0000E510 File Offset: 0x0000C710
public bool IsLocalizable
{
get
{
return this.localizable;
}
}
/// Returns whether the value of the given object is equal to the current .
/// true if the value of the given object is equal to that of the current; otherwise, false.
/// The object to test the value equality of.
// Token: 0x0600057C RID: 1404 RVA: 0x0000E518 File Offset: 0x0000C718
public override bool Equals(object obj)
{
return obj is LocalizableAttribute && (obj == this || ((LocalizableAttribute)obj).IsLocalizable == this.localizable);
}
/// Returns the hash code for this instance.
/// A hash code for the current .
// Token: 0x0600057D RID: 1405 RVA: 0x0000E544 File Offset: 0x0000C744
public override int GetHashCode()
{
return this.localizable.GetHashCode();
}
/// Determines if this attribute is the default.
/// true if the attribute is the default value for this attribute class; otherwise, false.
// Token: 0x0600057E RID: 1406 RVA: 0x0000E554 File Offset: 0x0000C754
public override bool IsDefaultAttribute()
{
return this.localizable == LocalizableAttribute.Default.IsLocalizable;
}
// Token: 0x040001A1 RID: 417
private bool localizable;
/// Specifies the default value, which is . This static field is read-only.
// Token: 0x040001A2 RID: 418
public static readonly LocalizableAttribute Default = new LocalizableAttribute(false);
/// Specifies that a property should not be localized. This static field is read-only.
// Token: 0x040001A3 RID: 419
public static readonly LocalizableAttribute No = new LocalizableAttribute(false);
/// Specifies that a property should be localized. This static field is read-only.
// Token: 0x040001A4 RID: 420
public static readonly LocalizableAttribute Yes = new LocalizableAttribute(true);
}
}