PostSharp6.4//API Reference/Post­Sharp.​Reflection Namespace/Reflection­Helper Class/Reflection­Helper Methods/Reflection­Helper.​Are­Internals­Visible­To­Current­Project Method

ReflectionHelper.AreInternalsVisibleToCurrentProject Method

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

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public static bool AreInternalsVisibleToCurrentProject(
	this Assembly definingAssembly
)

Parameters

definingAssembly
Type: System.Reflection.Assembly
The assembly containing the internal declaration.

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Assembly. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also