PostSharpAPI ReferencePost­Sharp.​ReflectionReflection­HelperAre­Internals­Visible­To
Open sandboxFocus

ReflectionHelper.AreInternalsVisibleTo Method

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
Boolean

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