using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// The exception that is thrown when an operation is performed on a disposed object.
/// 2
// Token: 0x0200069A RID: 1690
[ComVisible(true)]
[Serializable]
public class ObjectDisposedException : InvalidOperationException
{
/// Initializes a new instance of the class with a string containing the name of the disposed object.
/// A string containing the name of the disposed object.
// Token: 0x0600404D RID: 16461 RVA: 0x000DB610 File Offset: 0x000D9810
public ObjectDisposedException(string objectName)
: base(Locale.GetText("The object was used after being disposed."))
{
this.obj_name = objectName;
this.msg = Locale.GetText("The object was used after being disposed.");
}
/// Initializes a new instance of the class with the specified object name and message.
/// The name of the disposed object.
/// The error message that explains the reason for the exception.
// Token: 0x0600404E RID: 16462 RVA: 0x000DB63C File Offset: 0x000D983C
public ObjectDisposedException(string objectName, string message)
: base(message)
{
this.obj_name = objectName;
this.msg = message;
}
/// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception. If is not null, the current exception is raised in a catch block that handles the inner exception.
// Token: 0x0600404F RID: 16463 RVA: 0x000DB654 File Offset: 0x000D9854
public ObjectDisposedException(string message, Exception innerException)
: base(message, innerException)
{
}
/// Initializes a new instance of the class with serialized data.
/// The that holds the serialized object data about the exception being thrown.
/// The that contains contextual information about the source or destination.
// Token: 0x06004050 RID: 16464 RVA: 0x000DB660 File Offset: 0x000D9860
protected ObjectDisposedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
this.obj_name = info.GetString("ObjectName");
}
/// Gets the message that describes the error.
/// A string that describes the error.
/// 1
// Token: 0x17000BE0 RID: 3040
// (get) Token: 0x06004051 RID: 16465 RVA: 0x000DB67C File Offset: 0x000D987C
public override string Message
{
get
{
return this.msg;
}
}
/// Gets the name of the disposed object.
/// A string containing the name of the disposed object.
/// 1
// Token: 0x17000BE1 RID: 3041
// (get) Token: 0x06004052 RID: 16466 RVA: 0x000DB684 File Offset: 0x000D9884
public string ObjectName
{
get
{
return this.obj_name;
}
}
/// Retrieves the object with the parameter name and additional exception information.
/// The that holds the serialized object data about the exception being thrown.
/// The that contains contextual information about the source or destination.
/// 1
///
///
///
// Token: 0x06004053 RID: 16467 RVA: 0x000DB68C File Offset: 0x000D988C
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("ObjectName", this.obj_name);
}
// Token: 0x0400198F RID: 6543
private string obj_name;
// Token: 0x04001990 RID: 6544
private string msg;
}
}