Open sandboxFocus

Method AreInternalsVisibleTo

AreInternalsVisibleTo(Assembly, Assembly)

Determines whether the InternalsVisibleToAttribute attribute relationship exists between two assemblies.

Declaration
public static bool AreInternalsVisibleTo(this Assembly definingAssembly, Assembly referencingAssembly)
Parameters
Type Name Description
Assembly definingAssembly

The assembly defining the InternalsVisibleToAttribute attribute.

Assembly referencingAssembly

The assembly referenced by the InternalsVisibleToAttribute attribute.

Returns
Type Description
bool

true if definingAssembly equals referencingAssembly or if definingAssembly contains an InternalsVisibleToAttribute attribute for referencingAssembly, otherwise false.