MemberAdapterFactory.CreatePropertyMetadata Method

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

Definition

Creates the property metadata for the specified property within the given declaring type.
public virtual IProperty CreatePropertyMetadata(IType declaringType, PropertyInfo propertyInfo)

Parameters

declaringType IType
The type metadata that contains the property.
propertyInfo PropertyInfo
The reflection property to get metadata for.

Returns

IProperty
A metadata representation of the specified property.

Exceptions

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