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

92 lines
3.8 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Specifies that an object has no subproperties capable of being edited. This class cannot be inherited.</summary>
// Token: 0x02000148 RID: 328
[Token(Token = "0x2000148")]
[AttributeUsage(AttributeTargets.All)]
public sealed class ImmutableObjectAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.ImmutableObjectAttribute" /> class.</summary>
/// <param name="immutable">
/// <see langword="true" /> if the object is immutable; otherwise, <see langword="false" />.</param>
// Token: 0x060007F3 RID: 2035 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60007F3")]
[Address(RVA = "0x495A20", Offset = "0x494820", VA = "0x180495A20")]
public ImmutableObjectAttribute(bool immutable)
{
}
/// <summary>Gets whether the object is immutable.</summary>
/// <returns>
/// <see langword="true" /> if the object is immutable; otherwise, <see langword="false" />.</returns>
// Token: 0x1700017F RID: 383
// (get) Token: 0x060007F4 RID: 2036 RVA: 0x00004FB0 File Offset: 0x000031B0
[Token(Token = "0x1700017F")]
public bool Immutable
{
[Token(Token = "0x60007F4")]
[Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0")]
get
{
return default(bool);
}
}
/// <summary>Returns a value that indicates whether this instance is equal to a specified object.</summary>
/// <param name="obj">An <see cref="T:System.Object" /> to compare with this instance or a null reference (<see langword="Nothing" /> in Visual Basic).</param>
/// <returns>
/// <see langword="true" /> if <paramref name="obj" /> equals the type and value of this instance; otherwise, <see langword="false" />.</returns>
// Token: 0x060007F5 RID: 2037 RVA: 0x00004FC8 File Offset: 0x000031C8
[Token(Token = "0x60007F5")]
[Address(RVA = "0x4EDF40", Offset = "0x4ECD40", VA = "0x1804EDF40", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Returns the hash code for this instance.</summary>
/// <returns>A hash code for the current <see cref="T:System.ComponentModel.ImmutableObjectAttribute" />.</returns>
// Token: 0x060007F6 RID: 2038 RVA: 0x00004FE0 File Offset: 0x000031E0
[Token(Token = "0x60007F6")]
[Address(RVA = "0x490530", Offset = "0x48F330", VA = "0x180490530", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Indicates whether the value of this instance is the default value.</summary>
/// <returns>
/// <see langword="true" /> if this instance is the default attribute for the class; otherwise, <see langword="false" />.</returns>
// Token: 0x060007F7 RID: 2039 RVA: 0x00004FF8 File Offset: 0x000031F8
[Token(Token = "0x60007F7")]
[Address(RVA = "0x4EDFC0", Offset = "0x4ECDC0", VA = "0x1804EDFC0", Slot = "6")]
public override bool IsDefaultAttribute()
{
return default(bool);
}
/// <summary>Specifies that an object has no subproperties that can be edited. This <see langword="static" /> field is read-only.</summary>
// Token: 0x040004F3 RID: 1267
[Token(Token = "0x40004F3")]
public static readonly ImmutableObjectAttribute Yes;
/// <summary>Specifies that an object has at least one editable subproperty. This <see langword="static" /> field is read-only.</summary>
// Token: 0x040004F4 RID: 1268
[Token(Token = "0x40004F4")]
public static readonly ImmutableObjectAttribute No;
/// <summary>Represents the default value for <see cref="T:System.ComponentModel.ImmutableObjectAttribute" />.</summary>
// Token: 0x040004F5 RID: 1269
[Token(Token = "0x40004F5")]
public static readonly ImmutableObjectAttribute Default;
// Token: 0x040004F6 RID: 1270
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40004F6")]
private bool immutable;
}
}