PostSharpAPI ReferencePost­Sharp.​Patterns.​Model.​Type­AdaptersField­RuleGet­Relationship­Info
Open sandboxFocus

FieldRule.GetRelationshipInfo Method

GetRelationshipInfo(FieldInfo)

Gets the RelationshipInfo of a given field.

Declaration
public abstract Nullable<RelationshipInfo> GetRelationshipInfo(FieldInfo field)
Parameters
Type Name Description
System.Reflection.FieldInfo field

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

Returns
Type Description
System.Nullable<RelationshipInfo>

A RelationshipInfo structure for field, or null if the current FieldRule does not know how to handle field.