IMemberAdapterFactory.CreateTypeMetadata Method
- Namespace
- Kampute.DocToolkit.Metadata
- Assembly
- Kampute.DocToolkit.dll
| IMemberAdapterFactory.CreateTypeMetadata(IAssembly, Type) | Creates the type metadata for the specified type within the given assembly. |
| IMemberAdapterFactory.CreateTypeMetadata(IType, Type) | Creates the type metadata for the specified type nested within the given declaring type. |
IMemberAdapterFactory.CreateTypeMetadata(IAssembly, Type)
Creates the type metadata for the specified type within the given assembly.
IType CreateTypeMetadata(IAssembly assembly, Type type)Parameters
assemblyIAssembly- The assembly metadata that contains the type.
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 specified assembly. - Thrown when
typeis a nested type. - NotSupportedException
- Thrown when the type is not supported.
IMemberAdapterFactory.CreateTypeMetadata(IType, Type)
Creates the type metadata for the specified type nested within the given declaring type.
IType CreateTypeMetadata(IType declaringType, Type type)Parameters
declaringTypeIType- The type metadata that contains the type.
typeType- The reflection type to get metadata for.
Returns
- IType
- A metadata representation of the specified type.
Exceptions
- ArgumentNullException
- Thrown when
declaringTypeortypeisnull. - ArgumentException
- Thrown when
typedoes not belong todeclaringType. - NotSupportedException
- Thrown when the type is not supported.
