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

declaringEntity object
The assembly or type that declares the class type.
classType Type
The reflection information of the class type to wrap.

Exceptions

ArgumentNullException
Thrown when declaringEntity or classType is null.
ArgumentException
Thrown when declaringEntity is neither an IAssembly nor an IType.
Thrown when classType is not declared by the declaringEntity.
Thrown when classType is a nested type but declaringEntity is an assembly, or when classType is a top-level type but declaringEntity is a type.
Thrown when classType is not a class type.