PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Model.​Type­Adapters Namespace/Field­Rule Class/Field­Rule Methods/Field­Rule.​Get­Relationship­Info Method

FieldRule.GetRelationshipInfo Method

Gets the RelationshipInfo of a given field.

Namespace:  PostSharp.Patterns.Model.TypeAdapters
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public abstract Nullable<RelationshipInfo> GetRelationshipInfo(
	FieldInfo field
)

Parameters

field
Type: System.Reflection.FieldInfo
A FieldInfo that is not annotated by any MemberRelationshipAttribute.

Return Value

Type: Nullable<RelationshipInfo>
A RelationshipInfo structure for field, or null if the current FieldRule does not know how to handle field.
See Also