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
@@ -0,0 +1,76 @@
using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
namespace System.Security.Policy
{
/// <summary>Confirms that a code assembly originates in the global assembly cache (GAC) as evidence for policy evaluation. This class cannot be inherited.</summary>
// Token: 0x0200058B RID: 1419
[ComVisible(true)]
[Serializable]
public sealed class GacInstalled : IBuiltInEvidence, IIdentityPermissionFactory
{
// Token: 0x060033EE RID: 13294 RVA: 0x000B2BC8 File Offset: 0x000B0DC8
int IBuiltInEvidence.GetRequiredSize(bool verbose)
{
return 1;
}
// Token: 0x060033EF RID: 13295 RVA: 0x000B2BCC File Offset: 0x000B0DCC
int IBuiltInEvidence.InitFromBuffer(char[] buffer, int position)
{
return position;
}
// Token: 0x060033F0 RID: 13296 RVA: 0x000B2BD0 File Offset: 0x000B0DD0
int IBuiltInEvidence.OutputToBuffer(char[] buffer, int position, bool verbose)
{
buffer[position] = '\t';
return position + 1;
}
/// <summary>Creates an equivalent copy of the current object.</summary>
/// <returns>A new <see cref="T:System.Security.Policy.GacInstalled" /> object.</returns>
// Token: 0x060033F1 RID: 13297 RVA: 0x000B2BDC File Offset: 0x000B0DDC
public object Copy()
{
return new GacInstalled();
}
/// <summary>Creates a new identity permission that corresponds to the current object.</summary>
/// <returns>A new <see cref="T:System.Security.Permissions.GacIdentityPermission" />.</returns>
/// <param name="evidence">The <see cref="T:System.Security.Policy.Evidence" /> from which to construct the identity permission. </param>
// Token: 0x060033F2 RID: 13298 RVA: 0x000B2BE4 File Offset: 0x000B0DE4
public IPermission CreateIdentityPermission(Evidence evidence)
{
return new GacIdentityPermission();
}
/// <summary>Indicates whether the current object is equivalent to the specified object.</summary>
/// <returns>true if <paramref name="o" /> is a <see cref="T:System.Security.Policy.GacInstalled" /> object; otherwise, false.</returns>
/// <param name="o">The object to compare with the current object. </param>
// Token: 0x060033F3 RID: 13299 RVA: 0x000B2BEC File Offset: 0x000B0DEC
public override bool Equals(object o)
{
return o != null && o is GacInstalled;
}
/// <summary>Returns a hash code for the current object.</summary>
/// <returns>0 (zero).</returns>
// Token: 0x060033F4 RID: 13300 RVA: 0x000B2C00 File Offset: 0x000B0E00
public override int GetHashCode()
{
return 0;
}
/// <summary>Returns a string representation of the current object.</summary>
/// <returns>A string representation of the current object.</returns>
// Token: 0x060033F5 RID: 13301 RVA: 0x000B2C04 File Offset: 0x000B0E04
public override string ToString()
{
SecurityElement securityElement = new SecurityElement(base.GetType().FullName);
securityElement.AddAttribute("version", "1");
return securityElement.ToString();
}
}
}