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 (Field­Def­Declaration)

VisibilityHelper.IsPublic Method (FieldDefDeclaration)

Determines whether a field 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 FieldDefDeclaration fieldDef
)

Parameters

fieldDef
Type: PostSharp.Sdk.CodeModel.FieldDefDeclaration
A field.

Return Value

Type: Boolean
true if fieldDef 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 FieldDefDeclaration. 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