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
typeType- The reflection type to get metadata for.
Returns
- IType
- A metadata representation of the specified type.
Exceptions
- ArgumentNullException
- Thrown when
typeisnull. - ArgumentException
- Thrown when
typedoes 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 : ITypeThis method has a default implementation in the interface.
Type Parameters
T- The specific type of type metadata to retrieve.
Parameters
typeType- The reflection type to get metadata for.
Returns
- T
- A metadata representation of the specified type.
Exceptions
- ArgumentNullException
- Thrown when
typeisnull. - ArgumentException
- Thrown when
typedoes 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.
