ClassModel Constructors
- Namespace
- Kampute.DocToolkit.Models
- Assembly
- Kampute.DocToolkit.dll
| ClassModel(object, IClassType) | Initializes a new instance of the ClassModel class. |
| ClassModel(AssemblyModel, IClassType) | Initializes a new instance of the ClassModel class as a top-level type. |
| ClassModel(TypeModel, IClassType) | Initializes a new instance of the ClassModel class as a nested type. |
ClassModel(object, IClassType)
Initializes a new instance of the ClassModel class.
protected ClassModel(object declaryingEntity, IClassType type)Parameters
declaryingEntityobject- The object that declares the type, which is either an AssemblyModel for top-level types or a TypeModel for nested types.
typeIClassType- The metadata of the type represented by this instance.
Exceptions
- ArgumentNullException
- Thrown when
typeordeclaryingEntityisnull. - ArgumentException
- Thrown when
declaryingEntityis not an instance of AssemblyModel or TypeModel.
ClassModel(AssemblyModel, IClassType)
Initializes a new instance of the ClassModel class as a top-level type.
public ClassModel(AssemblyModel assembly, IClassType type)Parameters
assemblyAssemblyModel- The assembly that contains the type.
typeIClassType- The metadata of the type represented by this instance.
Exceptions
- ArgumentNullException
- Thrown when
assemblyortypeisnull. - ArgumentException
- Thrown when
typeis not a top-level type ofassembly.
ClassModel(TypeModel, IClassType)
Initializes a new instance of the ClassModel class as a nested type.
public ClassModel(TypeModel declaringType, IClassType type)Parameters
declaringTypeTypeModel- The type that declares the type.
typeIClassType- The metadata of the type represented by this instance.
Exceptions
- ArgumentNullException
- Thrown when
declaringTypeortypeisnull. - ArgumentException
- Thrown when
typeis not directedly nested withindeclaringType.
