<PackageReference Include="System.Security.Permissions" Version="10.0.0-rc.2.25502.107" />

System.Security.Policy.HashMembershipCondition

Determines whether an assembly belongs to a code group by testing its hash value. This class cannot be inherited.
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); public IMembershipCondition Copy(); public void FromXml(SecurityElement e); public void FromXml(SecurityElement e, PolicyLevel level); public SecurityElement ToXml(); public SecurityElement ToXml(PolicyLevel level); } }