This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 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: 0x020003B0 RID: 944
[Token(Token = "0x20003B0")]
[Obsolete]
[ComVisible(true)]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method)]
[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: 0x020003B1 RID: 945
[Token(Token = "0x20003B1")]
[ComVisible(true)]
[Serializable]
public enum PermissionState
{
/// <summary>Full access to the resource protected by the permission.</summary>
// Token: 0x04001283 RID: 4739
[Token(Token = "0x4001283")]
Unrestricted = 1,
/// <summary>No access to the resource protected by the permission.</summary>
// Token: 0x04001284 RID: 4740
[Token(Token = "0x4001284")]
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: 0x020003B2 RID: 946
[Token(Token = "0x20003B2")]
[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: 0x0600209C RID: 8348 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600209C")]
[Address(RVA = "0x2DF4050", Offset = "0x2DF2E50", VA = "0x182DF4050")]
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: 0x17000466 RID: 1126
// (get) Token: 0x0600209D RID: 8349 RVA: 0x00014280 File Offset: 0x00012480
// (set) Token: 0x0600209E RID: 8350 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000466")]
public ReflectionPermissionFlag Flags
{
[Token(Token = "0x600209D")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")]
get
{
return ReflectionPermissionFlag.NoFlags;
}
[Token(Token = "0x600209E")]
[Address(RVA = "0x2DF4110", Offset = "0x2DF2F10", VA = "0x182DF4110")]
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: 0x0600209F RID: 8351 RVA: 0x00014298 File Offset: 0x00012498
[Token(Token = "0x600209F")]
[Address(RVA = "0x2DF3E10", Offset = "0x2DF2C10", VA = "0x182DF3E10", 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: 0x060020A0 RID: 8352 RVA: 0x000142B0 File Offset: 0x000124B0
[Token(Token = "0x60020A0")]
[Address(RVA = "0x2DF3EF0", Offset = "0x2DF2CF0", VA = "0x182DF3EF0", 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: 0x060020A1 RID: 8353 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020A1")]
[Address(RVA = "0x2DF3F00", Offset = "0x2DF2D00", VA = "0x182DF3F00", Slot = "7")]
public override SecurityElement ToXml()
{
return null;
}
// Token: 0x060020A2 RID: 8354 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020A2")]
[Address(RVA = "0x2DF3D70", Offset = "0x2DF2B70", VA = "0x182DF3D70")]
private ReflectionPermission Cast(IPermission target)
{
return null;
}
// Token: 0x04001285 RID: 4741
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001285")]
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: 0x020003B3 RID: 947
[Token(Token = "0x20003B3")]
[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: 0x04001287 RID: 4743
[Token(Token = "0x4001287")]
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: 0x04001288 RID: 4744
[Token(Token = "0x4001288")]
[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: 0x04001289 RID: 4745
[Token(Token = "0x4001289")]
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: 0x0400128A RID: 4746
[Token(Token = "0x400128A")]
[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: 0x0400128B RID: 4747
[Token(Token = "0x400128B")]
[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: 0x0400128C RID: 4748
[Token(Token = "0x400128C")]
[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: 0x020003B4 RID: 948
[Token(Token = "0x20003B4")]
[Obsolete]
[Obsolete("CAS support is not available with Silverlight applications.")]
[ComVisible(true)]
[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: 0x0400128E RID: 4750
[Token(Token = "0x400128E")]
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: 0x0400128F RID: 4751
[Token(Token = "0x400128F")]
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: 0x04001290 RID: 4752
[Token(Token = "0x4001290")]
[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: 0x04001291 RID: 4753
[Token(Token = "0x4001291")]
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: 0x04001292 RID: 4754
[Token(Token = "0x4001292")]
LinkDemand,
/// <summary>The derived class inheriting the class or overriding a method is required to have been granted the specified permission.</summary>
// Token: 0x04001293 RID: 4755
[Token(Token = "0x4001293")]
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: 0x04001294 RID: 4756
[Token(Token = "0x4001294")]
[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: 0x04001295 RID: 4757
[Token(Token = "0x4001295")]
[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: 0x04001296 RID: 4758
[Token(Token = "0x4001296")]
[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: 0x020003B5 RID: 949
[Token(Token = "0x20003B5")]
[Obsolete]
[ComVisible(true)]
[Obsolete("CAS support is not available with Silverlight applications.")]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method)]
[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: 0x020003B6 RID: 950
[Token(Token = "0x20003B6")]
[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: 0x060020A3 RID: 8355 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020A3")]
[Address(RVA = "0x2E01200", Offset = "0x2E00000", VA = "0x182E01200")]
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: 0x060020A4 RID: 8356 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020A4")]
[Address(RVA = "0x2E01240", Offset = "0x2E00040", VA = "0x182E01240")]
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: 0x17000467 RID: 1127
// (set) Token: 0x060020A5 RID: 8357 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000467")]
public SecurityPermissionFlag Flags
{
[Token(Token = "0x60020A5")]
[Address(RVA = "0x2E01300", Offset = "0x2E00100", VA = "0x182E01300")]
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: 0x060020A6 RID: 8358 RVA: 0x000142C8 File Offset: 0x000124C8
[Token(Token = "0x60020A6")]
[Address(RVA = "0x2E01110", Offset = "0x2DFFF10", VA = "0x182E01110", 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: 0x060020A7 RID: 8359 RVA: 0x000142E0 File Offset: 0x000124E0
[Token(Token = "0x60020A7")]
[Address(RVA = "0x2E01010", Offset = "0x2DFFE10", VA = "0x182E01010", 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: 0x060020A8 RID: 8360 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020A8")]
[Address(RVA = "0x2E01120", Offset = "0x2DFFF20", VA = "0x182E01120", Slot = "7")]
public override SecurityElement ToXml()
{
return null;
}
// Token: 0x060020A9 RID: 8361 RVA: 0x000142F8 File Offset: 0x000124F8
[Token(Token = "0x60020A9")]
[Address(RVA = "0xF537A0", Offset = "0xF525A0", VA = "0x180F537A0")]
private bool IsEmpty()
{
return default(bool);
}
// Token: 0x060020AA RID: 8362 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020AA")]
[Address(RVA = "0x2E00F70", Offset = "0x2DFFD70", VA = "0x182E00F70")]
private SecurityPermission Cast(IPermission target)
{
return null;
}
// Token: 0x04001297 RID: 4759
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001297")]
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: 0x020003B7 RID: 951
[Token(Token = "0x20003B7")]
[Obsolete]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method)]
[Obsolete("CAS support is not available with Silverlight applications.")]
[ComVisible(true)]
[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: 0x17000468 RID: 1128
// (set) Token: 0x060020AB RID: 8363 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000468")]
public bool SkipVerification
{
[Token(Token = "0x60020AB")]
[Address(RVA = "0x2E00F50", Offset = "0x2DFFD50", VA = "0x182E00F50")]
set
{
}
}
// Token: 0x04001298 RID: 4760
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001298")]
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: 0x020003B8 RID: 952
[Token(Token = "0x20003B8")]
[Obsolete]
[Flags]
[ComVisible(true)]
[Obsolete("CAS support is not available with Silverlight applications.")]
[Serializable]
public enum SecurityPermissionFlag
{
/// <summary>No security access.</summary>
// Token: 0x0400129A RID: 4762
[Token(Token = "0x400129A")]
NoFlags = 0,
/// <summary>Ability to assert that all this code's callers have the requisite permission for the operation.</summary>
// Token: 0x0400129B RID: 4763
[Token(Token = "0x400129B")]
Assertion = 1,
/// <summary>Ability to call unmanaged code.</summary>
// Token: 0x0400129C RID: 4764
[Token(Token = "0x400129C")]
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: 0x0400129D RID: 4765
[Token(Token = "0x400129D")]
SkipVerification = 4,
/// <summary>Permission for the code to run. Without this permission, managed code will not be executed.</summary>
// Token: 0x0400129E RID: 4766
[Token(Token = "0x400129E")]
Execution = 8,
/// <summary>Ability to use certain advanced operations on threads.</summary>
// Token: 0x0400129F RID: 4767
[Token(Token = "0x400129F")]
ControlThread = 16,
/// <summary>Ability to provide evidence, including the ability to alter the evidence provided by the common language runtime.</summary>
// Token: 0x040012A0 RID: 4768
[Token(Token = "0x40012A0")]
ControlEvidence = 32,
/// <summary>Ability to view and modify policy.</summary>
// Token: 0x040012A1 RID: 4769
[Token(Token = "0x40012A1")]
ControlPolicy = 64,
/// <summary>Ability to provide serialization services. Used by serialization formatters.</summary>
// Token: 0x040012A2 RID: 4770
[Token(Token = "0x40012A2")]
SerializationFormatter = 128,
/// <summary>Ability to specify domain policy.</summary>
// Token: 0x040012A3 RID: 4771
[Token(Token = "0x40012A3")]
ControlDomainPolicy = 256,
/// <summary>Ability to manipulate the principal object.</summary>
// Token: 0x040012A4 RID: 4772
[Token(Token = "0x40012A4")]
ControlPrincipal = 512,
/// <summary>Ability to create and manipulate an <see cref="T:System.AppDomain" />.</summary>
// Token: 0x040012A5 RID: 4773
[Token(Token = "0x40012A5")]
ControlAppDomain = 1024,
/// <summary>Permission to configure Remoting types and channels.</summary>
// Token: 0x040012A6 RID: 4774
[Token(Token = "0x40012A6")]
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: 0x040012A7 RID: 4775
[Token(Token = "0x40012A7")]
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: 0x040012A8 RID: 4776
[Token(Token = "0x40012A8")]
BindingRedirects = 8192,
/// <summary>The unrestricted state of the permission.</summary>
// Token: 0x040012A9 RID: 4777
[Token(Token = "0x40012A9")]
AllFlags = 16383
}
}