using System;
using System.Runtime.InteropServices;
namespace System
{
/// Marks the program elements that are no longer in use. This class cannot be inherited.
/// 1
// Token: 0x0200003F RID: 63
[ComVisible(true)]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)]
[Serializable]
public sealed class ObsoleteAttribute : Attribute
{
/// Initializes a new instance of the class with default properties.
// Token: 0x06000650 RID: 1616 RVA: 0x00014A38 File Offset: 0x00012C38
public ObsoleteAttribute()
{
}
/// Initializes a new instance of the class with a specified workaround message.
/// The text string that describes alternative workarounds.
// Token: 0x06000651 RID: 1617 RVA: 0x00014A40 File Offset: 0x00012C40
public ObsoleteAttribute(string message)
{
this._message = message;
}
/// Initializes a new instance of the class with a workaround message and a Boolean value indicating whether the obsolete element usage is considered an error.
/// The text string that describes alternative workarounds.
/// The Boolean value that indicates whether the obsolete element usage is considered an error.
// Token: 0x06000652 RID: 1618 RVA: 0x00014A50 File Offset: 0x00012C50
public ObsoleteAttribute(string message, bool error)
{
this._message = message;
this._error = error;
}
/// Gets the workaround message, including a description of the alternative program elements.
/// The workaround text string.
/// 2
// Token: 0x170000AC RID: 172
// (get) Token: 0x06000653 RID: 1619 RVA: 0x00014A68 File Offset: 0x00012C68
public string Message
{
get
{
return this._message;
}
}
/// Gets a Boolean value indicating whether the compiler will treat usage of the obsolete program element as an error.
/// true if the obsolete element usage is considered an error; otherwise, false. The default is false.
/// 2
// Token: 0x170000AD RID: 173
// (get) Token: 0x06000654 RID: 1620 RVA: 0x00014A70 File Offset: 0x00012C70
public bool IsError
{
get
{
return this._error;
}
}
// Token: 0x04000083 RID: 131
private string _message;
// Token: 0x04000084 RID: 132
private bool _error;
}
}