This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 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: 0x0200054A RID: 1354
[Token(Token = "0x200054A")]
[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: 0x04001925 RID: 6437
[Token(Token = "0x4001925")]
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: 0x04001926 RID: 6438
[Token(Token = "0x4001926")]
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: 0x04001927 RID: 6439
[Token(Token = "0x4001927")]
Success
}
}
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
namespace System.Runtime.ConstrainedExecution
{
/// <summary>Specifies a reliability contract.</summary>
// Token: 0x02000549 RID: 1353
[Token(Token = "0x2000549")]
[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: 0x04001920 RID: 6432
[Token(Token = "0x4001920")]
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: 0x04001921 RID: 6433
[Token(Token = "0x4001921")]
MayCorruptAppDomain,
/// <summary>In the face of exceptional conditions, the method is guaranteed to limit state corruption to the current instance.</summary>
// Token: 0x04001922 RID: 6434
[Token(Token = "0x4001922")]
MayCorruptInstance,
/// <summary>In the face of exceptional conditions, the method is guaranteed not to corrupt state.</summary>
// Token: 0x04001923 RID: 6435
[Token(Token = "0x4001923")]
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: 0x02000547 RID: 1351
[Token(Token = "0x2000547")]
[ComVisible(true)]
public abstract class CriticalFinalizerObject
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.ConstrainedExecution.CriticalFinalizerObject" /> class.</summary>
// Token: 0x06002C01 RID: 11265 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C01")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
[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: 0x06002C02 RID: 11266 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C02")]
[Address(RVA = "0x2CEC740", Offset = "0x2CEB740", VA = "0x182CEC740", 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: 0x02000548 RID: 1352
[Token(Token = "0x2000548")]
[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: 0x06002C03 RID: 11267 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C03")]
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
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: 0x0200054B RID: 1355
[Token(Token = "0x200054B")]
[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: 0x06002C04 RID: 11268 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C04")]
[Address(RVA = "0x2CF3C60", Offset = "0x2CF2C60", VA = "0x182CF3C60")]
public ReliabilityContractAttribute(Consistency consistencyGuarantee, Cer cer)
{
}
// Token: 0x04001928 RID: 6440
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001928")]
private Consistency _consistency;
// Token: 0x04001929 RID: 6441
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4001929")]
private Cer _cer;
}
}