DelegateModel Constructors

Namespace
Kampute.DocToolkit.Models
Assembly
  • Kampute.DocToolkit.dll
DelegateModel(object, IDelegateType)Initializes a new instance of the DelegateModel class.
DelegateModel(AssemblyModel, IDelegateType)Initializes a new instance of the DelegateModel class as a top-level type.
DelegateModel(TypeModel, IDelegateType)Initializes a new instance of the DelegateModel class as a nested type.

DelegateModel(object, IDelegateType)

Initializes a new instance of the DelegateModel class.
protected DelegateModel(object declaringEntity, IDelegateType type)

Parameters

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

Exceptions

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

DelegateModel(AssemblyModel, IDelegateType)

Initializes a new instance of the DelegateModel class as a top-level type.
public DelegateModel(AssemblyModel assembly, IDelegateType type)

Parameters

assembly AssemblyModel
The assembly that contains the type.
type IDelegateType
The metadata of the type represented by this instance.

Exceptions

ArgumentNullException
Thrown when assembly or type is null.
ArgumentException
Thrown when type is not a top-level type of assembly.

DelegateModel(TypeModel, IDelegateType)

Initializes a new instance of the DelegateModel class as a nested type.
public DelegateModel(TypeModel declaringType, IDelegateType type)

Parameters

declaringType TypeModel
The type that declares the type.
type IDelegateType
The type represented by this instance.

Exceptions

ArgumentNullException
Thrown when declaringType or type is null.
ArgumentException
Thrown when type is not directedly nested within declaringType.