Skip to content

PropertyInfoExtensions.IsPublic Method ​

Definition ​

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

c#
public static bool IsPublic(this PropertyInfo property);

View source

Parameters ​

NameTypeDescription
propertyPropertyInfoThe property.

Returns ​

Boolean

true if property is Public; false otherwise.