PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Visibility­Helper Class / Visibility­Helper Methods / Visibility­Helper.​Is­Visible Method

VisibilityHelper.IsVisible Method

Determines whether a member is visible from a given scope.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public static bool IsVisible(
	this IMember member,
	TypeDefDeclaration scope
)

Parameters

member
Type: PostSharp.Sdk.CodeModel.IMember
A member.
scope
Type: PostSharp.Sdk.CodeModel.TypeDefDeclaration
Scope from which visibility is checked.

Return Value

Type: Boolean
true if member is visible outside from the scope, otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMember. 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