This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

RelationshipKind Enumeration

Enumeration of the kinds of relationship between objects in a object graph.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 5.0.34.0 (5.0.34.0)
Syntax
C#
[FlagsAttribute]
public enum RelationshipKind
Members
  Member nameValueDescription
None0 No relationship.
Default1 Means that the relationship kind has not been specified. The typical behavior is a build-time error or warning.
Child2 Child (see ChildAttribute).
Reference4 Reference (see ReferenceAttribute).
ParentSurrogate8 Parent surrogate (see IsParentSurrogate).
Parent16 Parent (see ParentAttribute).
ChildOrParentSurrogate10 Either Child or ParentSurrogate, depending on the type of the specific object assigned to the field or property. This is the default relationship kind for ChildAttribute when the IsParentSurrogate property is not set: it causes the field to be a ParentSurrogate if the object is an AdvisableCollection<T> or an AdvisableDictionary<TKey, TValue>, otherwise a Child.
See Also