92 lines
3.9 KiB
C#
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: 0x02000112 RID: 274
|
|
[Token(Token = "0x2000112")]
|
|
[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: 0x060006C1 RID: 1729 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60006C1")]
|
|
[Address(RVA = "0xB9AFE0", Offset = "0xB99FE0", VA = "0x180B9AFE0")]
|
|
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: 0x17000130 RID: 304
|
|
// (get) Token: 0x060006C2 RID: 1730 RVA: 0x00004AB8 File Offset: 0x00002CB8
|
|
[Token(Token = "0x17000130")]
|
|
public bool IsDesignOnly
|
|
{
|
|
[Token(Token = "0x60006C2")]
|
|
[Address(RVA = "0x4944B0", Offset = "0x4934B0", VA = "0x1804944B0")]
|
|
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: 0x060006C3 RID: 1731 RVA: 0x00004AD0 File Offset: 0x00002CD0
|
|
[Token(Token = "0x60006C3")]
|
|
[Address(RVA = "0xC525F0", Offset = "0xC515F0", VA = "0x180C525F0", 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: 0x060006C4 RID: 1732 RVA: 0x00004AE8 File Offset: 0x00002CE8
|
|
[Token(Token = "0x60006C4")]
|
|
[Address(RVA = "0xC52570", Offset = "0xC51570", VA = "0x180C52570", 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: 0x060006C5 RID: 1733 RVA: 0x00004B00 File Offset: 0x00002D00
|
|
[Token(Token = "0x60006C5")]
|
|
[Address(RVA = "0xA697A0", Offset = "0xA687A0", VA = "0x180A697A0", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x040004AB RID: 1195
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40004AB")]
|
|
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: 0x040004AC RID: 1196
|
|
[Token(Token = "0x40004AC")]
|
|
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: 0x040004AD RID: 1197
|
|
[Token(Token = "0x40004AD")]
|
|
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: 0x040004AE RID: 1198
|
|
[Token(Token = "0x40004AE")]
|
|
public static readonly DesignOnlyAttribute Default;
|
|
}
|
|
}
|