TypeDecoratorAdapter Constructor

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

Definition

Initializes a new instance of the TypeDecoratorAdapter class.
public TypeDecoratorAdapter(object declaringEntity, Type type)

Parameters

declaringEntity object
The assembly or type that declares the decorated type.
type Type
The reflection information of the array, pointer, by-ref, or nullable 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.
Thrown when type is not an array, pointer, by-ref, or nullable type.