<PackageReference Include="System.Security.Permissions" Version="9.0.6" />

HashMembershipCondition

Determines whether an assembly belongs to a code group by testing its hash value. This class cannot be inherited.
using System.Runtime.Serialization; using System.Security.Cryptography; namespace System.Security.Policy { public sealed class HashMembershipCondition : IDeserializationCallback, ISerializable, ISecurityEncodable, ISecurityPolicyEncodable, IMembershipCondition { public HashAlgorithm HashAlgorithm { get; set; } public byte[] HashValue { get; set; } public HashMembershipCondition(HashAlgorithm hashAlg, byte[] value) { } public bool Check(Evidence evidence) { return false; } public IMembershipCondition Copy() { return this; } public override bool Equals(object o) { return base.Equals(o); } public void FromXml(SecurityElement e) { } public void FromXml(SecurityElement e, PolicyLevel level) { } public override int GetHashCode() { return base.GetHashCode(); } void IDeserializationCallback.OnDeserialization(object sender) { } void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { throw new PlatformNotSupportedException(); } public override string ToString() { return base.ToString(); } public SecurityElement ToXml() { return null; } public SecurityElement ToXml(PolicyLevel level) { return null; } } }