PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelRelationship­KindChild­Or­Parent­Surrogate
Open sandboxFocus

RelationshipKind.ChildOrParentSurrogate Field

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.

Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
public const RelationshipKind ChildOrParentSurrogate
Returns
Type Description
RelationshipKind