Custom attribute that, when applied to a field or automatic property, specifies that this field or property should be automatically set to the parent of the instance of the declaring type, whenever this instance is attached as a child to another object.
Implements
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
public sealed class ParentAttribute : MemberRelationshipAttribute, IValidableAnnotation
Remarks
It is recommended to add this custom attribute only to private fields or automatic properties with a private setter.
Constructors
Name | Description |
---|---|
ParentAttribute() |