Open sandboxFocus

Class RegisterFieldRuleAttribute

Custom attribute that registers a FieldRule. The custom attribute must be applied to the current project at the assembly level.

Inheritance
RegisterFieldRuleAttribute
Namespace: PostSharp.Patterns.Model.TypeAdapters
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class RegisterFieldRuleAttribute : Attribute
Remarks

PostSharp reads this custom attribute from the assembly that contains the aggregatable class. Apply it to each project in which the rule must take effect.

Constructors

Name Description
RegisterFieldRuleAttribute(Type)

Initializes a new instance of the RegisterFieldRuleAttribute class.

Properties

Name Description
FieldRuleType

Gets the Type (derived from FieldRule).

See Also