MrKWatkins.Reflection 1.3.1 Help

FieldInfoExtensions.IsPublicOrProtected Method

Definition

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.

public static bool IsPublicOrProtected(this FieldInfo field);

Parameters

Name

Type

Description

field

FieldInfo

The field.

Returns

Boolean

true if the field is Public, Protected or ProtectedInternal; false otherwise.

Last modified: 17 December 2024