MemberAdapterFactory.CreateTypeMetadata Method

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll
MemberAdapterFactory.CreateTypeMetadata(IAssembly, Type)Creates the type metadata for the specified type within the given assembly.
MemberAdapterFactory.CreateTypeMetadata(IType, Type)Creates the type metadata for the specified type nested within the given declaring type.

MemberAdapterFactory.CreateTypeMetadata(IAssembly, Type)

Creates the type metadata for the specified type within the given assembly.
public virtual IType CreateTypeMetadata(IAssembly assembly, Type type)

Parameters

assembly IAssembly
The assembly metadata that contains the type.
type Type
The reflection type to get metadata for.

Returns

IType
A metadata representation of the specified type.

Exceptions

ArgumentNullException
Thrown when type is null.
ArgumentException
Thrown when type does not belong to the specified assembly.
Thrown when type is a nested type.
NotSupportedException
Thrown when the type is not supported.

MemberAdapterFactory.CreateTypeMetadata(IType, Type)

Creates the type metadata for the specified type nested within the given declaring type.
public virtual IType CreateTypeMetadata(IType declaringType, Type type)

Parameters

declaringType IType
The type metadata that contains the type.
type Type
The reflection type to get metadata for.

Returns

IType
A metadata representation of the specified type.

Exceptions

ArgumentNullException
Thrown when declaringType or type is null.
ArgumentException
Thrown when type does not belong to declaringType.
NotSupportedException
Thrown when the type is not supported.