PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Model.​Type­Adapters Namespace/Register­Field­Rule­Attribute Class

RegisterFieldRuleAttribute Class

Custom attribute that registers a FieldRule. The custom attribute must be applied to the current project at assembly-level.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Patterns.Model.TypeAdapters.RegisterFieldRuleAttribute

Namespace:  PostSharp.Patterns.Model.TypeAdapters
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public sealed class RegisterFieldRuleAttribute : Attribute

The RegisterFieldRuleAttribute type exposes the following members.

Constructors
  NameDescription
Public methodRegisterFieldRuleAttribute
Initializes a new instance of the RegisterFieldRuleAttribute type.
Properties
  NameDescription
Public propertyFieldRuleType
Gets the Type (derived from FieldRule).
See Also