Skip to content

FieldInfoExtensions.IsPublic Method ​

Definition ​

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

c#
public static bool IsPublic(this FieldInfo field);

View source

Parameters ​

NameTypeDescription
fieldFieldInfoThe field.

Returns ​

Boolean

true if the field is Public; false otherwise.

Remarks ​

Equivalent to IsPublic; included for completion.