StructModel Constructors

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

StructModel(object, IStructType)

Initializes a new instance of the StructModel class.
protected StructModel(object declaryingEntity, IStructType 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 IStructType
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.

StructModel(AssemblyModel, IStructType)

Initializes a new instance of the ClassModel class as a top-level type.
public StructModel(AssemblyModel assembly, IStructType type)

Parameters

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

StructModel(TypeModel, IStructType)

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

Parameters

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