IMemberAdapterRepository.GetTypeMetadata Method

Namespace
Kampute.DocToolkit.Metadata
Assembly
  • Kampute.DocToolkit.dll
IMemberAdapterRepository.GetTypeMetadata(Type)Gets the type metadata for the specified type within the assembly.
IMemberAdapterRepository.GetTypeMetadata<T>(Type)Gets the type metadata for the specified type within the assembly.

IMemberAdapterRepository.GetTypeMetadata(Type)

Gets the type metadata for the specified type within the assembly.
IType GetTypeMetadata(Type type)

Parameters

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 assembly.
NotSupportedException
Thrown when the type is not supported.

IMemberAdapterRepository.GetTypeMetadata<T>(Type)

Gets the type metadata for the specified type within the assembly.
T GetTypeMetadata<T>(Type type)
	where T : IType
This method has a default implementation in the interface.

Type Parameters

T
The specific type of type metadata to retrieve.

Parameters

type Type
The reflection type to get metadata for.

Returns

T
A metadata representation of the specified type.

Exceptions

ArgumentNullException
Thrown when type is null.
ArgumentException
Thrown when type does not belong to the assembly.
NotSupportedException
Thrown when the type is not supported.
InvalidCastException
Thrown when the retrieved type metadata cannot be cast to T.