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
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.
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
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.
