PostSharpAPI ReferencePost­Sharp.​Patterns.​Model.​Type­AdaptersRegister­Field­Rule­AttributeRegister­Field­Rule­Attribute
Open sandboxFocus

RegisterFieldRuleAttribute Constructor

RegisterFieldRuleAttribute(Type)

Initializes a new instance of the RegisterFieldRuleAttribute type.

Declaration
public RegisterFieldRuleAttribute(Type fieldRuleType)
Parameters
Type Name Description
System.Type fieldRuleType

A System.Type derived from FieldRule. The type must have a default constructor.