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

VisibilityHelper.IsPublicOrInternal Method (MethodDefDeclaration)

Determines whether a method is visible outside class hierarchy.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public static bool IsPublicOrInternal(
	this MethodDefDeclaration methodDef


Type: PostSharp.Sdk.CodeModel.MethodDefDeclaration
A method.

Return Value

Type: Boolean
true if methodDef is visible outside its class hierarchy, otherwise false.

Usage Note

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