PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelParent­Attribute
Open sandboxFocus

Class ParentAttribute

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.

Inheritance
ParentAttribute
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
public sealed class ParentAttribute : MemberRelationshipAttribute, IValidableAnnotation

Constructors

Name Description
ParentAttribute() PostSharp.Patterns.Model.ParentAttribute