This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
+100
View File
@@ -0,0 +1,100 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// <summary>The exception that is thrown when an operation is performed on a disposed object.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x0200069A RID: 1690
[ComVisible(true)]
[Serializable]
public class ObjectDisposedException : InvalidOperationException
{
/// <summary>Initializes a new instance of the <see cref="T:System.ObjectDisposedException" /> class with a string containing the name of the disposed object.</summary>
/// <param name="objectName">A string containing the name of the disposed object. </param>
// 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.");
}
/// <summary>Initializes a new instance of the <see cref="T:System.ObjectDisposedException" /> class with the specified object name and message.</summary>
/// <param name="objectName">The name of the disposed object. </param>
/// <param name="message">The error message that explains the reason for the exception. </param>
// Token: 0x0600404E RID: 16462 RVA: 0x000DB63C File Offset: 0x000D983C
public ObjectDisposedException(string objectName, string message)
: base(message)
{
this.obj_name = objectName;
this.msg = message;
}
/// <summary>Initializes a new instance of the <see cref="T:System.ObjectDisposedException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="innerException">The exception that is the cause of the current exception. If <paramref name="innerException" /> is not null, the current exception is raised in a catch block that handles the inner exception.</param>
// Token: 0x0600404F RID: 16463 RVA: 0x000DB654 File Offset: 0x000D9854
public ObjectDisposedException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ObjectDisposedException" /> class with serialized data.</summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown. </param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination. </param>
// Token: 0x06004050 RID: 16464 RVA: 0x000DB660 File Offset: 0x000D9860
protected ObjectDisposedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
this.obj_name = info.GetString("ObjectName");
}
/// <summary>Gets the message that describes the error.</summary>
/// <returns>A string that describes the error.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000BE0 RID: 3040
// (get) Token: 0x06004051 RID: 16465 RVA: 0x000DB67C File Offset: 0x000D987C
public override string Message
{
get
{
return this.msg;
}
}
/// <summary>Gets the name of the disposed object.</summary>
/// <returns>A string containing the name of the disposed object.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000BE1 RID: 3041
// (get) Token: 0x06004052 RID: 16466 RVA: 0x000DB684 File Offset: 0x000D9884
public string ObjectName
{
get
{
return this.obj_name;
}
}
/// <summary>Retrieves the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the parameter name and additional exception information.</summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown. </param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination. </param>
/// <filterpriority>1</filterpriority>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="*AllFiles*" PathDiscovery="*AllFiles*" />
/// </PermissionSet>
// 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;
}
}