Class AggregatableAttribute
Custom attribute that, when applied to class, enables instances of this class to be involved in a parent-child relationship.
Inheritance
Implements
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
[IntroduceInterface]
[MulticastAttributeUsage]
[AspectTypeDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[HasConstraint]
[Serializer]
public sealed class AggregatableAttribute : InstanceLevelAspect, ITypeLevelAspect, ITypeLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, ICloneAwareAspect, IInstanceScopedAspect, IAttachable, IAggregatable, IAdviceProvider, IAspectProvider, IAspect, IService
Constructors
Name | Description |
---|---|
AggregatableAttribute() | Initializes a new instance of the AggregatableAttribute class. |
AggregatableAttribute(PortableFormatterConstructorContext) |
Fields
Properties
Name | Description |
---|---|
ChildrenFields | Gets (at build time) the list of children fields together with their ChildInfo. |
DefaultItemRelationship | Gets or sets the default kind of relationship for collection items. |
DefaultMemberRelationship | Gets or sets the default kind of relationship of fields and automatic properties. |
IsParentSurrogate | Determines whether instances of the target class of this custom attribute are parent surrogates. |
IsParentSurrogateSpecified | Determines whether the IsParentSurrogate property has been set. |