Open sandboxFocus

Method IsAccessibleFromOutsideAssembly

IsAccessibleFromOutsideAssembly(IDeclaration, bool)

Determines whether a member or type can be accessed from an external assembly.

Declaration
public static bool IsAccessibleFromOutsideAssembly(this IDeclaration declaration, bool honorInternalVisibleToAttributes = true)
Parameters
Type Name Description
IDeclaration declaration

The declaration to check.

bool honorInternalVisibleToAttributes

Whether to consider InternalsVisibleTo attributes when determining accessibility.

Returns
Type Description
bool

true if the declaration is accessible from outside the assembly; otherwise, false.