Files
Aug2021-Cpp2IL-Dump/System/ComponentModel/DesignOnlyAttribute.cs
T
2026-04-10 22:50:51 +02:00

92 lines
3.9 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Specifies whether a property can only be set at design time.</summary>
// Token: 0x02000116 RID: 278
[Token(Token = "0x2000116")]
[AttributeUsage(AttributeTargets.All)]
public sealed class DesignOnlyAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.DesignOnlyAttribute" /> class.</summary>
/// <param name="isDesignOnly">
/// <see langword="true" /> if a property can be set only at design time; <see langword="false" /> if the property can be set at design time and at run time.</param>
// Token: 0x060006D7 RID: 1751 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60006D7")]
[Address(RVA = "0x49E320", Offset = "0x49D120", VA = "0x18049E320")]
public DesignOnlyAttribute(bool isDesignOnly)
{
}
/// <summary>Gets a value indicating whether a property can be set only at design time.</summary>
/// <returns>
/// <see langword="true" /> if a property can be set only at design time; otherwise, <see langword="false" />.</returns>
// Token: 0x17000134 RID: 308
// (get) Token: 0x060006D8 RID: 1752 RVA: 0x00004AD0 File Offset: 0x00002CD0
[Token(Token = "0x17000134")]
public bool IsDesignOnly
{
[Token(Token = "0x60006D8")]
[Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0")]
get
{
return default(bool);
}
}
/// <summary>Determines if this attribute is the default.</summary>
/// <returns>
/// <see langword="true" /> if the attribute is the default value for this attribute class; otherwise, <see langword="false" />.</returns>
// Token: 0x060006D9 RID: 1753 RVA: 0x00004AE8 File Offset: 0x00002CE8
[Token(Token = "0x60006D9")]
[Address(RVA = "0x4E81E0", Offset = "0x4E6FE0", VA = "0x1804E81E0", Slot = "6")]
public override bool IsDefaultAttribute()
{
return default(bool);
}
/// <summary>Returns whether the value of the given object is equal to the current <see cref="T:System.ComponentModel.DesignOnlyAttribute" />.</summary>
/// <param name="obj">The object to test the value equality of.</param>
/// <returns>
/// <see langword="true" /> if the value of the given object is equal to that of the current; otherwise, <see langword="false" />.</returns>
// Token: 0x060006DA RID: 1754 RVA: 0x00004B00 File Offset: 0x00002D00
[Token(Token = "0x60006DA")]
[Address(RVA = "0x4E8160", Offset = "0x4E6F60", VA = "0x1804E8160", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Returns the hash code for this instance.</summary>
/// <returns>A 32-bit signed integer hash code.</returns>
// Token: 0x060006DB RID: 1755 RVA: 0x00004B18 File Offset: 0x00002D18
[Token(Token = "0x60006DB")]
[Address(RVA = "0x494E40", Offset = "0x493C40", VA = "0x180494E40", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
// Token: 0x040004B8 RID: 1208
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40004B8")]
private bool isDesignOnly;
/// <summary>Specifies that a property can be set only at design time. This <see langword="static" /> field is read-only.</summary>
// Token: 0x040004B9 RID: 1209
[Token(Token = "0x40004B9")]
public static readonly DesignOnlyAttribute Yes;
/// <summary>Specifies that a property can be set at design time or at run time. This <see langword="static" /> field is read-only.</summary>
// Token: 0x040004BA RID: 1210
[Token(Token = "0x40004BA")]
public static readonly DesignOnlyAttribute No;
/// <summary>Specifies the default value for the <see cref="T:System.ComponentModel.DesignOnlyAttribute" />, which is <see cref="F:System.ComponentModel.DesignOnlyAttribute.No" />. This <see langword="static" /> field is read-only.</summary>
// Token: 0x040004BB RID: 1211
[Token(Token = "0x40004BB")]
public static readonly DesignOnlyAttribute Default;
}
}