PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelChild­InfoChild­Info
Open sandboxFocus

ChildInfo Constructor

ChildInfo(FieldInfo, RelationshipInfo)

Initializes a new instance of the ChildInfo that represents a field.

Declaration
public ChildInfo(FieldInfo field, RelationshipInfo relationshipInfo)
Parameters
Type Name Description
System.Reflection.FieldInfo field

A field.

RelationshipInfo relationshipInfo

A RelationshipInfo instance that describes the kind of relationship of the child object to its direct parent.

ChildInfo(String, Type, RelationshipInfo)

Initializes a new instance of the ChildInfo that represents a collection item or a custom location.

Declaration
public ChildInfo(string locationName, Type locationType, RelationshipInfo relationshipInfo)
Parameters
Type Name Description
System.String locationName

Name of the location, for instance Item for a collection item.

System.Type locationType

Type of the location.

RelationshipInfo relationshipInfo

A RelationshipInfo instance that describes the kind of relationship of the child object to its direct parent.

ChildInfo(PortableFormatterConstructorContext)

Declaration
protected ChildInfo(PortableFormatterConstructorContext context)
Parameters
Type Name Description
PortableFormatterConstructorContext context