PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model.​Type­Adapters Namespace / Register­Field­Rule­Attribute Class / Register­Field­Rule­Attribute Constructor

RegisterFieldRuleAttribute Constructor

Initializes a new instance of the RegisterFieldRuleAttribute type.

Namespace:  PostSharp.Patterns.Model.TypeAdapters
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public RegisterFieldRuleAttribute(
	Type fieldRuleType
)

Parameters

fieldRuleType
Type: System.Type
A Type derived from FieldRule. The type must have a default constructor.
See Also