TypeAdapter Constructor

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll

Definition

Initializes a new instance of the TypeAdapter class.
protected TypeAdapter(object declaringEntity, Type type)

Parameters

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

Exceptions

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