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

VisibilityHelper.IsPublic Method (IMember)

Determines whether a member is visible outside its assembly.

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 IsPublic(
	this IMember member
)

Parameters

member
Type: PostSharp.Sdk.CodeModel.IMember
A member.

Return Value

Type: Boolean
true if member is visible outside its assembly, 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