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,18 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Specifies the base attribute class for code access security.</summary>
// Token: 0x020003CC RID: 972
[Token(Token = "0x20003CC")]
[Obsolete]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method)]
[ComVisible(true)]
[Obsolete("CAS support is not available with Silverlight applications.")]
[Serializable]
public abstract class CodeAccessSecurityAttribute : SecurityAttribute
{
}
}
@@ -0,0 +1,23 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Specifies whether a permission should have all or no access to resources at creation.</summary>
// Token: 0x020003CD RID: 973
[Token(Token = "0x20003CD")]
[ComVisible(true)]
[Serializable]
public enum PermissionState
{
/// <summary>Full access to the resource protected by the permission.</summary>
// Token: 0x04001346 RID: 4934
[Token(Token = "0x4001346")]
Unrestricted = 1,
/// <summary>No access to the resource protected by the permission.</summary>
// Token: 0x04001347 RID: 4935
[Token(Token = "0x4001347")]
None = 0
}
}
@@ -0,0 +1,93 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Controls access to non-public types and members through the <see cref="N:System.Reflection" /> APIs. Controls some features of the <see cref="N:System.Reflection.Emit" /> APIs.</summary>
// Token: 0x020003CE RID: 974
[Token(Token = "0x20003CE")]
[ComVisible(true)]
[Serializable]
public sealed class ReflectionPermission : CodeAccessPermission
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Permissions.ReflectionPermission" /> class with the specified access.</summary>
/// <param name="flag">One of the <see cref="T:System.Security.Permissions.ReflectionPermissionFlag" /> values.</param>
/// <exception cref="T:System.ArgumentException">The <paramref name="flag" /> parameter is not a valid value of <see cref="T:System.Security.Permissions.ReflectionPermissionFlag" />.</exception>
// Token: 0x060022A8 RID: 8872 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022A8")]
[Address(RVA = "0xD08960", Offset = "0xD07960", VA = "0x180D08960")]
public ReflectionPermission(ReflectionPermissionFlag flag)
{
}
/// <summary>Gets or sets the type of reflection allowed for the current permission.</summary>
/// <returns>The set flags for the current permission.</returns>
/// <exception cref="T:System.ArgumentException">An attempt is made to set this property to an invalid value. See <see cref="T:System.Security.Permissions.ReflectionPermissionFlag" /> for the valid values.</exception>
// Token: 0x170004DD RID: 1245
// (get) Token: 0x060022A9 RID: 8873 RVA: 0x00016650 File Offset: 0x00014850
// (set) Token: 0x060022AA RID: 8874 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DD")]
public ReflectionPermissionFlag Flags
{
[Token(Token = "0x60022A9")]
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
get
{
return ReflectionPermissionFlag.NoFlags;
}
[Token(Token = "0x60022AA")]
[Address(RVA = "0xD08A20", Offset = "0xD07A20", VA = "0x180D08A20")]
set
{
}
}
/// <summary>Determines whether the current permission is a subset of the specified permission.</summary>
/// <param name="target">A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.</param>
/// <returns>
/// <see langword="true" /> if the current permission is a subset of the specified permission; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentException">The <paramref name="target" /> parameter is not <see langword="null" /> and is not of the same type as the current permission.</exception>
// Token: 0x060022AB RID: 8875 RVA: 0x00016668 File Offset: 0x00014868
[Token(Token = "0x60022AB")]
[Address(RVA = "0xD08720", Offset = "0xD07720", VA = "0x180D08720", Slot = "6")]
public override bool IsSubsetOf(IPermission target)
{
return default(bool);
}
/// <summary>Returns a value indicating whether the current permission is unrestricted.</summary>
/// <returns>
/// <see langword="true" /> if the current permission is unrestricted; otherwise, <see langword="false" />.</returns>
// Token: 0x060022AC RID: 8876 RVA: 0x00016680 File Offset: 0x00014880
[Token(Token = "0x60022AC")]
[Address(RVA = "0xD08800", Offset = "0xD07800", VA = "0x180D08800", Slot = "8")]
public bool IsUnrestricted()
{
return default(bool);
}
/// <summary>Creates an XML encoding of the permission and its current state.</summary>
/// <returns>An XML encoding of the permission, including any state information.</returns>
// Token: 0x060022AD RID: 8877 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022AD")]
[Address(RVA = "0xD08810", Offset = "0xD07810", VA = "0x180D08810", Slot = "7")]
public override SecurityElement ToXml()
{
return null;
}
// Token: 0x060022AE RID: 8878 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022AE")]
[Address(RVA = "0xD08680", Offset = "0xD07680", VA = "0x180D08680")]
private ReflectionPermission Cast(IPermission target)
{
return null;
}
// Token: 0x04001348 RID: 4936
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001348")]
private ReflectionPermissionFlag flags;
}
}
@@ -0,0 +1,45 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Specifies the permitted use of the <see cref="N:System.Reflection" /> and <see cref="N:System.Reflection.Emit" /> namespaces.</summary>
// Token: 0x020003CF RID: 975
[Token(Token = "0x20003CF")]
[Flags]
[ComVisible(true)]
[Serializable]
public enum ReflectionPermissionFlag
{
/// <summary>Enumeration of types and members is allowed. Invocation operations are allowed on visible types and members.</summary>
// Token: 0x0400134A RID: 4938
[Token(Token = "0x400134A")]
NoFlags = 0,
/// <summary>This flag is obsolete. No flags are necessary to enumerate types and members and to examine their metadata. Use <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.NoFlags" /> instead.</summary>
// Token: 0x0400134B RID: 4939
[Token(Token = "0x400134B")]
[Obsolete]
TypeInformation = 1,
/// <summary>Invocation operations on all members are allowed, regardless of grant set. If this flag is not set, invocation operations are allowed only on visible members.</summary>
// Token: 0x0400134C RID: 4940
[Token(Token = "0x400134C")]
MemberAccess = 2,
/// <summary>Emitting debug symbols is allowed. Beginning with the .NET Framework 2.0 Service Pack 1, this flag is no longer required to emit code.</summary>
// Token: 0x0400134D RID: 4941
[Token(Token = "0x400134D")]
[Obsolete]
ReflectionEmit = 4,
/// <summary>
/// <see langword="TypeInformation" /> , <see langword="MemberAccess" />, and <see langword="ReflectionEmit" /> are set. <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.AllFlags" /> does not include <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.RestrictedMemberAccess" />.</summary>
// Token: 0x0400134E RID: 4942
[Token(Token = "0x400134E")]
[Obsolete]
AllFlags = 7,
/// <summary>Restricted member access is provided for partially trusted code. Partially trusted code can access nonpublic types and members, but only if the grant set of the partially trusted code includes all permissions in the grant set of the assembly that contains the nonpublic types and members being accessed. This flag is new in the .NET Framework 2.0 SP1.</summary>
// Token: 0x0400134F RID: 4943
[Token(Token = "0x400134F")]
[ComVisible(false)]
RestrictedMemberAccess = 8
}
}
@@ -0,0 +1,57 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Specifies the security actions that can be performed using declarative security.</summary>
// Token: 0x020003D0 RID: 976
[Token(Token = "0x20003D0")]
[Obsolete]
[ComVisible(true)]
[Obsolete("CAS support is not available with Silverlight applications.")]
[Serializable]
public enum SecurityAction
{
/// <summary>All callers higher in the call stack are required to have been granted the permission specified by the current permission object.</summary>
// Token: 0x04001351 RID: 4945
[Token(Token = "0x4001351")]
Demand = 2,
/// <summary>The calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource (see Using the Assert Method).</summary>
// Token: 0x04001352 RID: 4946
[Token(Token = "0x4001352")]
Assert,
/// <summary>The ability to access the resource specified by the current permission object is denied to callers, even if they have been granted permission to access it (see Using the Deny Method).</summary>
// Token: 0x04001353 RID: 4947
[Token(Token = "0x4001353")]
[Obsolete]
Deny,
/// <summary>Only the resources specified by this permission object can be accessed, even if the code has been granted permission to access other resources.</summary>
// Token: 0x04001354 RID: 4948
[Token(Token = "0x4001354")]
PermitOnly,
/// <summary>The immediate caller is required to have been granted the specified permission. Do not use in the .NET Framework 4. For full trust, use <see cref="T:System.Security.SecurityCriticalAttribute" /> instead; for partial trust, use <see cref="F:System.Security.Permissions.SecurityAction.Demand" />.</summary>
// Token: 0x04001355 RID: 4949
[Token(Token = "0x4001355")]
LinkDemand,
/// <summary>The derived class inheriting the class or overriding a method is required to have been granted the specified permission.</summary>
// Token: 0x04001356 RID: 4950
[Token(Token = "0x4001356")]
InheritanceDemand,
/// <summary>The request for the minimum permissions required for code to run. This action can only be used within the scope of the assembly.</summary>
// Token: 0x04001357 RID: 4951
[Token(Token = "0x4001357")]
[Obsolete]
RequestMinimum,
/// <summary>The request for additional permissions that are optional (not required to run). This request implicitly refuses all other permissions not specifically requested. This action can only be used within the scope of the assembly.</summary>
// Token: 0x04001358 RID: 4952
[Token(Token = "0x4001358")]
[Obsolete]
RequestOptional,
/// <summary>The request that permissions that might be misused will not be granted to the calling code. This action can only be used within the scope of the assembly.</summary>
// Token: 0x04001359 RID: 4953
[Token(Token = "0x4001359")]
[Obsolete]
RequestRefuse
}
}
@@ -0,0 +1,18 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Specifies the base attribute class for declarative security from which <see cref="T:System.Security.Permissions.CodeAccessSecurityAttribute" /> is derived.</summary>
// Token: 0x020003D1 RID: 977
[Token(Token = "0x20003D1")]
[Obsolete]
[Obsolete("CAS support is not available with Silverlight applications.")]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method)]
[ComVisible(true)]
[Serializable]
public abstract class SecurityAttribute : Attribute
{
}
}
@@ -0,0 +1,104 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Describes a set of security permissions applied to code. This class cannot be inherited.</summary>
// Token: 0x020003D2 RID: 978
[Token(Token = "0x20003D2")]
[ComVisible(true)]
[Serializable]
public sealed class SecurityPermission : CodeAccessPermission
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Permissions.SecurityPermission" /> class with either restricted or unrestricted permission as specified.</summary>
/// <param name="state">One of the <see cref="T:System.Security.Permissions.PermissionState" /> values.</param>
/// <exception cref="T:System.ArgumentException">The <paramref name="state" /> parameter is not a valid value of <see cref="T:System.Security.Permissions.PermissionState" />.</exception>
// Token: 0x060022AF RID: 8879 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022AF")]
[Address(RVA = "0xD0C1B0", Offset = "0xD0B1B0", VA = "0x180D0C1B0")]
public SecurityPermission(PermissionState state)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Permissions.SecurityPermission" /> class with the specified initial set state of the flags.</summary>
/// <param name="flag">The initial state of the permission, represented by a bitwise OR combination of any permission bits defined by <see cref="T:System.Security.Permissions.SecurityPermissionFlag" />.</param>
/// <exception cref="T:System.ArgumentException">The <paramref name="flag" /> parameter is not a valid value of <see cref="T:System.Security.Permissions.SecurityPermissionFlag" />.</exception>
// Token: 0x060022B0 RID: 8880 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022B0")]
[Address(RVA = "0xD0C1F0", Offset = "0xD0B1F0", VA = "0x180D0C1F0")]
public SecurityPermission(SecurityPermissionFlag flag)
{
}
/// <summary>Gets or sets the security permission flags.</summary>
/// <returns>The state of the current permission, represented by a bitwise OR combination of any permission bits defined by <see cref="T:System.Security.Permissions.SecurityPermissionFlag" />.</returns>
/// <exception cref="T:System.ArgumentException">An attempt is made to set this property to an invalid value. See <see cref="T:System.Security.Permissions.SecurityPermissionFlag" /> for the valid values.</exception>
// Token: 0x170004DE RID: 1246
// (set) Token: 0x060022B1 RID: 8881 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DE")]
public SecurityPermissionFlag Flags
{
[Token(Token = "0x60022B1")]
[Address(RVA = "0xD0C2B0", Offset = "0xD0B2B0", VA = "0x180D0C2B0")]
set
{
}
}
/// <summary>Returns a value indicating whether the current permission is unrestricted.</summary>
/// <returns>
/// <see langword="true" /> if the current permission is unrestricted; otherwise, <see langword="false" />.</returns>
// Token: 0x060022B2 RID: 8882 RVA: 0x00016698 File Offset: 0x00014898
[Token(Token = "0x60022B2")]
[Address(RVA = "0xD0C0C0", Offset = "0xD0B0C0", VA = "0x180D0C0C0", Slot = "8")]
public bool IsUnrestricted()
{
return default(bool);
}
/// <summary>Determines whether the current permission is a subset of the specified permission.</summary>
/// <param name="target">A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.</param>
/// <returns>
/// <see langword="true" /> if the current permission is a subset of the specified permission; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentException">The <paramref name="target" /> parameter is not <see langword="null" /> and is not of the same type as the current permission.</exception>
// Token: 0x060022B3 RID: 8883 RVA: 0x000166B0 File Offset: 0x000148B0
[Token(Token = "0x60022B3")]
[Address(RVA = "0xD0BFC0", Offset = "0xD0AFC0", VA = "0x180D0BFC0", Slot = "6")]
public override bool IsSubsetOf(IPermission target)
{
return default(bool);
}
/// <summary>Creates an XML encoding of the permission and its current state.</summary>
/// <returns>An XML encoding of the permission, including any state information.</returns>
// Token: 0x060022B4 RID: 8884 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B4")]
[Address(RVA = "0xD0C0D0", Offset = "0xD0B0D0", VA = "0x180D0C0D0", Slot = "7")]
public override SecurityElement ToXml()
{
return null;
}
// Token: 0x060022B5 RID: 8885 RVA: 0x000166C8 File Offset: 0x000148C8
[Token(Token = "0x60022B5")]
[Address(RVA = "0xD0BFB0", Offset = "0xD0AFB0", VA = "0x180D0BFB0")]
private bool IsEmpty()
{
return default(bool);
}
// Token: 0x060022B6 RID: 8886 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B6")]
[Address(RVA = "0xD0BF10", Offset = "0xD0AF10", VA = "0x180D0BF10")]
private SecurityPermission Cast(IPermission target)
{
return null;
}
// Token: 0x0400135A RID: 4954
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400135A")]
private SecurityPermissionFlag flags;
}
}
@@ -0,0 +1,37 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Allows security actions for <see cref="T:System.Security.Permissions.SecurityPermission" /> to be applied to code using declarative security. This class cannot be inherited.</summary>
// Token: 0x020003D3 RID: 979
[Token(Token = "0x20003D3")]
[Obsolete]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method)]
[ComVisible(true)]
[Obsolete("CAS support is not available with Silverlight applications.")]
[Serializable]
public sealed class SecurityPermissionAttribute : CodeAccessSecurityAttribute
{
/// <summary>Gets or sets a value indicating whether permission to bypass code verification is declared.</summary>
/// <returns>
/// <see langword="true" /> if permission to bypass code verification is declared; otherwise, <see langword="false" />.</returns>
// Token: 0x170004DF RID: 1247
// (set) Token: 0x060022B7 RID: 8887 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DF")]
public bool SkipVerification
{
[Token(Token = "0x60022B7")]
[Address(RVA = "0xD0BEF0", Offset = "0xD0AEF0", VA = "0x180D0BEF0")]
set
{
}
}
// Token: 0x0400135B RID: 4955
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400135B")]
private SecurityPermissionFlag m_Flags;
}
}
@@ -0,0 +1,82 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Specifies access flags for the security permission object.</summary>
// Token: 0x020003D4 RID: 980
[Token(Token = "0x20003D4")]
[Obsolete]
[Flags]
[Obsolete("CAS support is not available with Silverlight applications.")]
[ComVisible(true)]
[Serializable]
public enum SecurityPermissionFlag
{
/// <summary>No security access.</summary>
// Token: 0x0400135D RID: 4957
[Token(Token = "0x400135D")]
NoFlags = 0,
/// <summary>Ability to assert that all this code's callers have the requisite permission for the operation.</summary>
// Token: 0x0400135E RID: 4958
[Token(Token = "0x400135E")]
Assertion = 1,
/// <summary>Ability to call unmanaged code.</summary>
// Token: 0x0400135F RID: 4959
[Token(Token = "0x400135F")]
UnmanagedCode = 2,
/// <summary>Ability to skip verification of code in this assembly. Code that is unverifiable can be run if this permission is granted.</summary>
// Token: 0x04001360 RID: 4960
[Token(Token = "0x4001360")]
SkipVerification = 4,
/// <summary>Permission for the code to run. Without this permission, managed code will not be executed.</summary>
// Token: 0x04001361 RID: 4961
[Token(Token = "0x4001361")]
Execution = 8,
/// <summary>Ability to use certain advanced operations on threads.</summary>
// Token: 0x04001362 RID: 4962
[Token(Token = "0x4001362")]
ControlThread = 16,
/// <summary>Ability to provide evidence, including the ability to alter the evidence provided by the common language runtime.</summary>
// Token: 0x04001363 RID: 4963
[Token(Token = "0x4001363")]
ControlEvidence = 32,
/// <summary>Ability to view and modify policy.</summary>
// Token: 0x04001364 RID: 4964
[Token(Token = "0x4001364")]
ControlPolicy = 64,
/// <summary>Ability to provide serialization services. Used by serialization formatters.</summary>
// Token: 0x04001365 RID: 4965
[Token(Token = "0x4001365")]
SerializationFormatter = 128,
/// <summary>Ability to specify domain policy.</summary>
// Token: 0x04001366 RID: 4966
[Token(Token = "0x4001366")]
ControlDomainPolicy = 256,
/// <summary>Ability to manipulate the principal object.</summary>
// Token: 0x04001367 RID: 4967
[Token(Token = "0x4001367")]
ControlPrincipal = 512,
/// <summary>Ability to create and manipulate an <see cref="T:System.AppDomain" />.</summary>
// Token: 0x04001368 RID: 4968
[Token(Token = "0x4001368")]
ControlAppDomain = 1024,
/// <summary>Permission to configure Remoting types and channels.</summary>
// Token: 0x04001369 RID: 4969
[Token(Token = "0x4001369")]
RemotingConfiguration = 2048,
/// <summary>Permission to plug code into the common language runtime infrastructure, such as adding Remoting Context Sinks, Envoy Sinks and Dynamic Sinks.</summary>
// Token: 0x0400136A RID: 4970
[Token(Token = "0x400136A")]
Infrastructure = 4096,
/// <summary>Permission to perform explicit binding redirection in the application configuration file. This includes redirection of .NET Framework assemblies that have been unified as well as other assemblies found outside the .NET Framework.</summary>
// Token: 0x0400136B RID: 4971
[Token(Token = "0x400136B")]
BindingRedirects = 8192,
/// <summary>The unrestricted state of the permission.</summary>
// Token: 0x0400136C RID: 4972
[Token(Token = "0x400136C")]
AllFlags = 16383
}
}