TypeModel Constructor

Namespace
Kampute.DocToolkit.Models
Assembly
  • Kampute.DocToolkit.dll

Definition

Initializes a new instance of the TypeModel class.
protected TypeModel(object declaringEntity, IType type)

Parameters

declaringEntity object
The object that declares the type, which is either an AssemblyModel for top-level types or a TypeModel for nested types.
type IType
The metadata of the type represented by this instance.

Exceptions

ArgumentNullException
Thrown when type or declaringEntity is null.
ArgumentException
Thrown when declaringEntity is not a relevant instance of AssemblyModel or TypeModel.