[System.Security.SecuritySafeCritical] // auto-generated public override bool Equals(Object o) { CodeGroup that = (o as CodeGroup); if (that != null && this.GetType().Equals(that.GetType())) { if (Equals(this.m_name, that.m_name) && Equals(this.m_description, that.m_description)) { if (this.m_membershipCondition == null && this.m_element != null) { this.ParseMembershipCondition(); } if (that.m_membershipCondition == null && that.m_element != null) { that.ParseMembershipCondition(); } if (Equals(this.m_membershipCondition, that.m_membershipCondition)) { return(true); } } } return(false); }
public override bool Equals(object o) { CodeGroup group = o as CodeGroup; if (((group != null) && base.GetType().Equals(group.GetType())) && (object.Equals(this.m_name, group.m_name) && object.Equals(this.m_description, group.m_description))) { if ((this.m_membershipCondition == null) && (this.m_element != null)) { this.ParseMembershipCondition(); } if ((group.m_membershipCondition == null) && (group.m_element != null)) { group.ParseMembershipCondition(); } if (object.Equals(this.m_membershipCondition, group.m_membershipCondition)) { return(true); } } return(false); }
public override bool Equals(object o) { CodeGroup codeGroup = o as CodeGroup; if (codeGroup != null && this.GetType().Equals(codeGroup.GetType()) && (object.Equals((object)this.m_name, (object)codeGroup.m_name) && object.Equals((object)this.m_description, (object)codeGroup.m_description))) { if (this.m_membershipCondition == null && this.m_element != null) { this.ParseMembershipCondition(); } if (codeGroup.m_membershipCondition == null && codeGroup.m_element != null) { codeGroup.ParseMembershipCondition(); } if (object.Equals((object)this.m_membershipCondition, (object)codeGroup.m_membershipCondition)) { return(true); } } return(false); }
#pragma warning disable 618 internal static PolicyStatement ResolveCodeGroup(CodeGroup codeGroup, Evidence evidence) { // Custom code groups won't know how to mark the evidence they're using, so we need to // be pessimistic and mark it all as used if we encounter a code group from outside of mscorlib. if (codeGroup.GetType().Assembly != typeof(UnionCodeGroup).Assembly) { evidence.MarkAllEvidenceAsUsed(); } return codeGroup.Resolve(evidence); }
internal static PolicyStatement ResolveCodeGroup(CodeGroup codeGroup, Evidence evidence) { if (codeGroup.GetType().Assembly != typeof(UnionCodeGroup).Assembly) { evidence.MarkAllEvidenceAsUsed(); } return codeGroup.Resolve(evidence); }