PostSharp4.3//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.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.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).
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also