using System; using System.Runtime.InteropServices; namespace System.Security.Policy { /// Represents a membership condition that matches all code. This class cannot be inherited. // Token: 0x02000579 RID: 1401 [ComVisible(true)] [Serializable] public sealed class AllMembershipCondition : IConstantMembershipCondition, IMembershipCondition, ISecurityEncodable, ISecurityPolicyEncodable { /// Determines whether the specified evidence satisfies the membership condition. /// Always true. /// The evidence set against which to make the test. // Token: 0x06003333 RID: 13107 RVA: 0x000B0354 File Offset: 0x000AE554 public bool Check(Evidence evidence) { return true; } /// Creates an equivalent copy of the membership condition. /// A new, identical copy of the current membership condition. // Token: 0x06003334 RID: 13108 RVA: 0x000B0358 File Offset: 0x000AE558 public IMembershipCondition Copy() { return new AllMembershipCondition(); } /// Determines whether the specified membership condition is an . /// true if the specified membership condition is an ; otherwise, false. /// The object to compare to . // Token: 0x06003335 RID: 13109 RVA: 0x000B0360 File Offset: 0x000AE560 public override bool Equals(object o) { return o is AllMembershipCondition; } /// Reconstructs a security object with a specified state from an XML encoding. /// The XML encoding to use to reconstruct the security object. // Token: 0x06003336 RID: 13110 RVA: 0x000B036C File Offset: 0x000AE56C public void FromXml(SecurityElement e) { this.FromXml(e, null); } /// Reconstructs a security object with a specified state from an XML encoding. /// The XML encoding to use to reconstruct the security object. /// The policy level context used to resolve named permission set references. /// The parameter is null. /// The parameter is not a valid membership condition element. // Token: 0x06003337 RID: 13111 RVA: 0x000B0378 File Offset: 0x000AE578 public void FromXml(SecurityElement e, PolicyLevel level) { MembershipConditionHelper.CheckSecurityElement(e, "e", this.version, this.version); } /// Gets the hash code for the current membership condition. /// The hash code for the current membership condition. // Token: 0x06003338 RID: 13112 RVA: 0x000B0394 File Offset: 0x000AE594 public override int GetHashCode() { return typeof(AllMembershipCondition).GetHashCode(); } /// Creates and returns a string representation of the membership condition. /// A representation of the membership condition. // Token: 0x06003339 RID: 13113 RVA: 0x000B03A8 File Offset: 0x000AE5A8 public override string ToString() { return "All code"; } /// Creates an XML encoding of the security object and its current state. /// An XML encoding of the security object, including any state information. // Token: 0x0600333A RID: 13114 RVA: 0x000B03B0 File Offset: 0x000AE5B0 public SecurityElement ToXml() { return this.ToXml(null); } /// Creates an XML encoding of the security object and its current state with the specified . /// An XML encoding of the security object, including any state information. /// The policy level context for resolving named permission set references. // Token: 0x0600333B RID: 13115 RVA: 0x000B03BC File Offset: 0x000AE5BC public SecurityElement ToXml(PolicyLevel level) { return MembershipConditionHelper.Element(typeof(AllMembershipCondition), this.version); } // Token: 0x04001501 RID: 5377 private readonly int version = 1; } }