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

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

Exceptions

ArgumentNullException
Thrown when type or declaryingEntity is null.
ArgumentException
Thrown when declaryingEntity is 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

assembly AssemblyModel
The assembly that contains the type.
type IClassType
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.

ClassModel(TypeModel, IClassType)

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

Parameters

declaringType TypeModel
The type that declares the type.
type IClassType
The metadata of 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.