Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/ObsoleteAttribute.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

69 lines
2.9 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System
{
/// <summary>Marks the program elements that are no longer in use. This class cannot be inherited.</summary>
// Token: 0x0200012C RID: 300
[Token(Token = "0x200012C")]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate)]
[ComVisible(true)]
[Serializable]
public sealed class ObsoleteAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.ObsoleteAttribute" /> class with default properties.</summary>
// Token: 0x06000ADE RID: 2782 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000ADE")]
[Address(RVA = "0x2D784A0", Offset = "0x2D774A0", VA = "0x182D784A0")]
public ObsoleteAttribute()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ObsoleteAttribute" /> class with a specified workaround message.</summary>
/// <param name="message">The text string that describes alternative workarounds.</param>
// Token: 0x06000ADF RID: 2783 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000ADF")]
[Address(RVA = "0x2D78470", Offset = "0x2D77470", VA = "0x182D78470")]
public ObsoleteAttribute(string message)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ObsoleteAttribute" /> class with a workaround message and a Boolean value indicating whether the obsolete element usage is considered an error.</summary>
/// <param name="message">The text string that describes alternative workarounds.</param>
/// <param name="error">
/// <see langword="true" /> if the obsolete element usage generates a compiler error; <see langword="false" /> if it generates a compiler warning.</param>
// Token: 0x06000AE0 RID: 2784 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000AE0")]
[Address(RVA = "0x166E9C0", Offset = "0x166D9C0", VA = "0x18166E9C0")]
public ObsoleteAttribute(string message, bool error)
{
}
/// <summary>Gets the workaround message, including a description of the alternative program elements.</summary>
/// <returns>The workaround text string.</returns>
// Token: 0x170000DA RID: 218
// (get) Token: 0x06000AE1 RID: 2785 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170000DA")]
public string Message
{
[Token(Token = "0x6000AE1")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return null;
}
}
// Token: 0x04000476 RID: 1142
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000476")]
private string _message;
// Token: 0x04000477 RID: 1143
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000477")]
private bool _error;
}
}