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

ReflectionHelper.AreInternalsVisibleToCurrentProject Method

AreInternalsVisibleToCurrentProject(Assembly)

Determines whether the internals of a given assembly are visible to the current project.

Declaration
public static bool AreInternalsVisibleToCurrentProject(this Assembly definingAssembly)
Parameters
Type Name Description
System.Reflection.Assembly definingAssembly

The assembly containing the internal declaration.

Returns
Type Description
System.Boolean

true if definingAssembly equals the assembly being processed or if definingAssembly contains an InternalsVisibleToAttribute attribute for the assembly being processed, otherwise false.