Open sandboxFocus

Class ChildInfo

Describes a location (typically a field or collection item) on which a child can be attached to a parent.

Inheritance
ChildInfo
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
[Serializer(typeof(ChildInfo.Serializer))]
public sealed class ChildInfo

Constructors

Name Description
ChildInfo(PortableFormatterConstructorContext)
ChildInfo(FieldInfo, RelationshipInfo)

Initializes a new instance of the ChildInfo that represents a field.

ChildInfo(string, Type, RelationshipInfo)

Initializes a new instance of the ChildInfo that represents a collection item or a custom location.

Properties

Name Description
BuildTimeVerificationDisabled

Determines whether aspects relying on AggregatableAttribute should verify the field at build time. This property is only relevant at build time.

DeclarationIdentifier

Gets the DeclarationIdentifier of the field where the child is stored, or Null if the current ChildInfo does not represent a field.

LocationName

Gets the name of the location to which the child is assigned.

LocationType

Gets the type of the location to which the child is assigned.

RelationshipInfo

Describes the kind of relationship between the child and its parent.