Files
Apr2020-Cpp2Il-Dump/System/ComponentModel/ReadOnlyAttribute.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

92 lines
4.1 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Specifies whether the property this attribute is bound to is read-only or read/write. This class cannot be inherited</summary>
// Token: 0x0200017D RID: 381
[Token(Token = "0x200017D")]
[AttributeUsage(AttributeTargets.All)]
public sealed class ReadOnlyAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.ReadOnlyAttribute" /> class.</summary>
/// <param name="isReadOnly">
/// <see langword="true" /> to show that the property this attribute is bound to is read-only; <see langword="false" /> to show that the property is read/write.</param>
// Token: 0x060009D4 RID: 2516 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60009D4")]
[Address(RVA = "0x49E320", Offset = "0x49D120", VA = "0x18049E320")]
public ReadOnlyAttribute(bool isReadOnly)
{
}
/// <summary>Gets a value indicating whether the property this attribute is bound to is read-only.</summary>
/// <returns>
/// <see langword="true" /> if the property this attribute is bound to is read-only; <see langword="false" /> if the property is read/write.</returns>
// Token: 0x170001F2 RID: 498
// (get) Token: 0x060009D5 RID: 2517 RVA: 0x00005F10 File Offset: 0x00004110
[Token(Token = "0x170001F2")]
public bool IsReadOnly
{
[Token(Token = "0x60009D5")]
[Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0")]
get
{
return default(bool);
}
}
/// <summary>Indicates whether this instance and a specified object are equal.</summary>
/// <param name="value">Another object to compare to.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="value" /> is equal to this instance; otherwise, <see langword="false" />.</returns>
// Token: 0x060009D6 RID: 2518 RVA: 0x00005F28 File Offset: 0x00004128
[Token(Token = "0x60009D6")]
[Address(RVA = "0x4C86A0", Offset = "0x4C74A0", VA = "0x1804C86A0", Slot = "0")]
public override bool Equals(object value)
{
return default(bool);
}
/// <summary>Returns the hash code for this instance.</summary>
/// <returns>A hash code for the current <see cref="T:System.ComponentModel.ReadOnlyAttribute" />.</returns>
// Token: 0x060009D7 RID: 2519 RVA: 0x00005F40 File Offset: 0x00004140
[Token(Token = "0x60009D7")]
[Address(RVA = "0x490530", Offset = "0x48F330", VA = "0x180490530", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <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: 0x060009D8 RID: 2520 RVA: 0x00005F58 File Offset: 0x00004158
[Token(Token = "0x60009D8")]
[Address(RVA = "0x4C8720", Offset = "0x4C7520", VA = "0x1804C8720", Slot = "6")]
public override bool IsDefaultAttribute()
{
return default(bool);
}
// Token: 0x040005A3 RID: 1443
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40005A3")]
private bool isReadOnly;
/// <summary>Specifies that the property this attribute is bound to is read-only and cannot be modified in the server explorer. This <see langword="static" /> field is read-only.</summary>
// Token: 0x040005A4 RID: 1444
[Token(Token = "0x40005A4")]
public static readonly ReadOnlyAttribute Yes;
/// <summary>Specifies that the property this attribute is bound to is read/write and can be modified. This <see langword="static" /> field is read-only.</summary>
// Token: 0x040005A5 RID: 1445
[Token(Token = "0x40005A5")]
public static readonly ReadOnlyAttribute No;
/// <summary>Specifies the default value for the <see cref="T:System.ComponentModel.ReadOnlyAttribute" />, which is <see cref="F:System.ComponentModel.ReadOnlyAttribute.No" /> (that is, the property this attribute is bound to is read/write). This <see langword="static" /> field is read-only.</summary>
// Token: 0x040005A6 RID: 1446
[Token(Token = "0x40005A6")]
public static readonly ReadOnlyAttribute Default;
}
}