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