PostSharp.ILAPI 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
System.Reflection.Assembly definingAssembly

The assembly defining the InternalsVisibleToAttribute attribute.

System.Reflection.Assembly referencingAssembly

The assembly referenced by the InternalsVisibleToAttribute attribute.

Returns
Type Description
System.Boolean

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