ClassTypeAdapter Constructor
- Namespace
- Kampute.DocToolkit.Metadata.Adapters
- Assembly
- Kampute.DocToolkit.dll
Definition
Initializes a new instance of the ClassTypeAdapter class.
public ClassTypeAdapter(object declaringEntity, Type classType)Parameters
declaringEntityobject- The assembly or type that declares the class type.
classTypeType- The reflection information of the class type to wrap.
Exceptions
- ArgumentNullException
- Thrown when
declaringEntityorclassTypeisnull. - ArgumentException
- Thrown when
declaringEntityis neither an IAssembly nor an IType. - Thrown when
classTypeis not declared by thedeclaringEntity. - Thrown when
classTypeis a nested type butdeclaringEntityis an assembly, or whenclassTypeis a top-level type butdeclaringEntityis a type. - Thrown when
classTypeis not a class type.
