PostSharp4.3/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.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.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