Open sandboxFocus

Struct RelationshipInfo

Describes the relationship between a parent and a child.

Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
[Serializer(typeof(RelationshipInfo.Serializer))]
public struct RelationshipInfo : IEquatable<RelationshipInfo>

Constructors

Name Description
RelationshipInfo(RelationshipKind, RelationshipKind)

Initializes a new instance of the RelationshipInfo type.

Properties

Name Description
ItemsRelationship

Gets the kind of relationship of items of the child collection relatively to the child collection.

PropagateBehaviors

Specifies whether behaviors of the parent should be propagated to objects assigned to the field.

PropagateBehaviorsToItems

Specifies whether behaviors of the parent should be propagated to objects added to collections assigned to this field. This property is ignored if PropagateBehaviors is false.

Relationship

Gets the kind of relationship of the child relatively to the parent. Valid values are Child, ParentSurrogate or ChildOrParentSurrogate.

Methods

Name Description
Equals(RelationshipInfo)
Equals(object)
GetHashCode()

Operators

Name Description
operator ==(RelationshipInfo, RelationshipInfo)

Determines whether two instances of the RelationshipInfo type are equal.

operator !=(RelationshipInfo, RelationshipInfo)

Determines whether two instances of the RelationshipInfo type are equal.