using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
namespace System.Security.Policy
{
/// Confirms that a code assembly originates in the global assembly cache (GAC) as evidence for policy evaluation. This class cannot be inherited.
// 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;
}
/// Creates an equivalent copy of the current object.
/// A new object.
// Token: 0x060033F1 RID: 13297 RVA: 0x000B2BDC File Offset: 0x000B0DDC
public object Copy()
{
return new GacInstalled();
}
/// Creates a new identity permission that corresponds to the current object.
/// A new .
/// The from which to construct the identity permission.
// Token: 0x060033F2 RID: 13298 RVA: 0x000B2BE4 File Offset: 0x000B0DE4
public IPermission CreateIdentityPermission(Evidence evidence)
{
return new GacIdentityPermission();
}
/// Indicates whether the current object is equivalent to the specified object.
/// true if is a object; otherwise, false.
/// The object to compare with the current object.
// Token: 0x060033F3 RID: 13299 RVA: 0x000B2BEC File Offset: 0x000B0DEC
public override bool Equals(object o)
{
return o != null && o is GacInstalled;
}
/// Returns a hash code for the current object.
/// 0 (zero).
// Token: 0x060033F4 RID: 13300 RVA: 0x000B2C00 File Offset: 0x000B0E00
public override int GetHashCode()
{
return 0;
}
/// Returns a string representation of the current object.
/// A string representation of the current object.
// 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();
}
}
}