MemberAdapterFactory.CreateConstructorMetadata Method

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

Definition

Creates the constructor metadata for the specified constructor within the given declaring type.
public virtual IConstructor CreateConstructorMetadata(IType declaringType, ConstructorInfo constructorInfo)

Parameters

declaringType IType
The type metadata that contains the constructor.
constructorInfo ConstructorInfo
The reflection constructor to get metadata for.

Returns

IConstructor
A metadata representation of the specified constructor.

Exceptions

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