This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
@@ -0,0 +1,25 @@
using System;
using Cpp2IlInjected;
namespace System.Runtime.ConstrainedExecution
{
/// <summary>Specifies a method's behavior when called within a constrained execution region.</summary>
// Token: 0x0200052E RID: 1326
[Token(Token = "0x200052E")]
[Serializable]
public enum Cer
{
/// <summary>The method, type, or assembly has no concept of a CER. It does not take advantage of CER guarantees. This implies the following:</summary>
// Token: 0x04001862 RID: 6242
[Token(Token = "0x4001862")]
None,
/// <summary>In the face of exceptional conditions, the method might fail. In this case, the method will report back to the calling method whether it succeeded or failed. The method must have a CER around the method body to ensure that it can report the return value.</summary>
// Token: 0x04001863 RID: 6243
[Token(Token = "0x4001863")]
MayFail,
/// <summary>In the face of exceptional conditions, the method is guaranteed to succeed. You should always construct a CER around the method that is called, even when it is called from within a non-CER region. A method is successful if it accomplishes what is intended. For example, marking <see cref="P:System.Collections.ArrayList.Count" /> with ReliabilityContractAttribute(Cer.Success) implies that when it is run under a CER, it always returns a count of the number of elements in the <see cref="T:System.Collections.ArrayList" /> and it can never leave the internal fields in an undetermined state.</summary>
// Token: 0x04001864 RID: 6244
[Token(Token = "0x4001864")]
Success
}
}
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
namespace System.Runtime.ConstrainedExecution
{
/// <summary>Specifies a reliability contract.</summary>
// Token: 0x0200052D RID: 1325
[Token(Token = "0x200052D")]
[Serializable]
public enum Consistency
{
/// <summary>In the face of exceptional conditions, the CLR makes no guarantees regarding state consistency; that is, the condition might corrupt the process.</summary>
// Token: 0x0400185D RID: 6237
[Token(Token = "0x400185D")]
MayCorruptProcess,
/// <summary>In the face of exceptional conditions, the common language runtime (CLR) makes no guarantees regarding state consistency in the current application domain.</summary>
// Token: 0x0400185E RID: 6238
[Token(Token = "0x400185E")]
MayCorruptAppDomain,
/// <summary>In the face of exceptional conditions, the method is guaranteed to limit state corruption to the current instance.</summary>
// Token: 0x0400185F RID: 6239
[Token(Token = "0x400185F")]
MayCorruptInstance,
/// <summary>In the face of exceptional conditions, the method is guaranteed not to corrupt state.</summary>
// Token: 0x04001860 RID: 6240
[Token(Token = "0x4001860")]
WillNotCorruptState
}
}
@@ -0,0 +1,31 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Runtime.ConstrainedExecution
{
/// <summary>Ensures that all finalization code in derived classes is marked as critical.</summary>
// Token: 0x0200052B RID: 1323
[Token(Token = "0x200052B")]
[ComVisible(true)]
public abstract class CriticalFinalizerObject
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.ConstrainedExecution.CriticalFinalizerObject" /> class.</summary>
// Token: 0x060029F4 RID: 10740 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029F4")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
protected CriticalFinalizerObject()
{
}
/// <summary>Releases all the resources used by the <see cref="T:System.Runtime.ConstrainedExecution.CriticalFinalizerObject" /> class.</summary>
// Token: 0x060029F5 RID: 10741 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029F5")]
[Address(RVA = "0x294C160", Offset = "0x294AF60", VA = "0x18294C160", Slot = "1")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
protected override void Finalize()
{
}
}
}
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace System.Runtime.ConstrainedExecution
{
/// <summary>Instructs the native image generation service to prepare a method for inclusion in a constrained execution region (CER).</summary>
// Token: 0x0200052C RID: 1324
[Token(Token = "0x200052C")]
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method)]
public sealed class PrePrepareMethodAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.ConstrainedExecution.PrePrepareMethodAttribute" /> class.</summary>
// Token: 0x060029F6 RID: 10742 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029F6")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
public PrePrepareMethodAttribute()
{
}
}
}
@@ -0,0 +1,32 @@
using System;
using Cpp2IlInjected;
namespace System.Runtime.ConstrainedExecution
{
/// <summary>Defines a contract for reliability between the author of some code, and the developers who have a dependency on that code.</summary>
// Token: 0x0200052F RID: 1327
[Token(Token = "0x200052F")]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Interface)]
public sealed class ReliabilityContractAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.ConstrainedExecution.ReliabilityContractAttribute" /> class with the specified <see cref="T:System.Runtime.ConstrainedExecution.Consistency" /> guarantee and <see cref="T:System.Runtime.ConstrainedExecution.Cer" /> value.</summary>
/// <param name="consistencyGuarantee">One of the <see cref="T:System.Runtime.ConstrainedExecution.Consistency" /> values.</param>
/// <param name="cer">One of the <see cref="T:System.Runtime.ConstrainedExecution.Cer" /> values.</param>
// Token: 0x060029F7 RID: 10743 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029F7")]
[Address(RVA = "0x29552D0", Offset = "0x29540D0", VA = "0x1829552D0")]
public ReliabilityContractAttribute(Consistency consistencyGuarantee, Cer cer)
{
}
// Token: 0x04001865 RID: 6245
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001865")]
private Consistency _consistency;
// Token: 0x04001866 RID: 6246
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4001866")]
private Cer _cer;
}
}