<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.5.25277.114" />

IMembershipCondition

Defines the test to determine whether a code assembly is a member of a code group.
bool Check(Evidence evidence)

Determines whether the specified evidence satisfies the membership condition.

Creates an equivalent copy of the membership condition.

bool Equals(object obj)

Determines whether the specified Object is equal to the current Object.

string ToString()

Creates and returns a string representation of the membership condition.