MrKWatkins.Reflection 1.3.1 Help

FieldInfoExtensions Class

Definition

Extension methods for FieldInfo.

public static class FieldInfoExtensions

Methods

Name

Description

GetAccessibility(FieldInfo)

Returns the Accessibility of the specified FieldInfo.

IsConst(FieldInfo)

Returns true if the field is const; false otherwise.

IsProtected(FieldInfo)

Returns true if the field is protected as viewed from an external assembly, i.e. its Accessibility is Protected or ProtectedInternal; false otherwise.

IsPublic(FieldInfo)

Returns true if the field is public, i.e. its Accessibility is Public; false otherwise.

IsPublicOrProtected(FieldInfo)

Returns true if the field is public or protected as viewed from an external assembly, i.e. its Accessibility is Public, Protected or ProtectedInternal; false otherwise.

IsReadOnly(FieldInfo)

Returns true if the field is readonly; false otherwise.

Last modified: 17 December 2024