Skip to content

PropertyInfoExtensions.IsRequired Method ​

Definition ​

Returns true if the specified PropertyInfo represents a property marked with the required modifier; false otherwise.

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

View source

Parameters ​

NameTypeDescription
propertyPropertyInfoThe property

Returns ​

Boolean

true if property represents a property marked with the required modifier; false otherwise.