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
declaringEntityobject- The declaring entity of the type, which is either an AssemblyModel for top-level types or a TypeModel for nested types.
typeIDelegateType- The metadata of the type represented by this instance.
Exceptions
- ArgumentNullException
- Thrown when
declaringEntityortypeisnull. - ArgumentException
- Thrown when
declaringEntityis 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
assemblyAssemblyModel- The assembly that contains the type.
typeIDelegateType- The metadata of the type represented by this instance.
Exceptions
- ArgumentNullException
- Thrown when
assemblyortypeisnull. - ArgumentException
- Thrown when
typeis not a top-level type ofassembly.
DelegateModel(TypeModel, IDelegateType)
Initializes a new instance of the DelegateModel class as a nested type.
public DelegateModel(TypeModel declaringType, IDelegateType type)Parameters
declaringTypeTypeModel- The type that declares the type.
typeIDelegateType- The type represented by this instance.
Exceptions
- ArgumentNullException
- Thrown when
declaringTypeortypeisnull. - ArgumentException
- Thrown when
typeis not directedly nested withindeclaringType.
