MemberAdapterFactory.CreateFieldMetadata Method

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll

Definition

Creates the field metadata for the specified field within the given declaring type.
public virtual IField CreateFieldMetadata(IType declaringType, FieldInfo fieldInfo)

Parameters

declaringType IType
The type metadata that contains the field.
fieldInfo FieldInfo
The reflection field to get metadata for.

Returns

IField
A metadata representation of the specified field.

Exceptions

ArgumentNullException
Thrown when declaringType or fieldInfo is null.
ArgumentException
Thrown when fieldInfo does not belong to declaringType.