EnumModel Constructors
- Namespace
- Kampute.DocToolkit.Models
- Assembly
- Kampute.DocToolkit.dll
| EnumModel(object, IEnumType) | Initializes a new instance of the EnumModel class. |
| EnumModel(AssemblyModel, IEnumType) | Initializes a new instance of the EnumModel class as a top-level type. |
| EnumModel(TypeModel, IEnumType) | Initializes a new instance of the EnumModel class as a nested type. |
EnumModel(object, IEnumType)
Initializes a new instance of the EnumModel class.
protected EnumModel(object declaringEntity, IEnumType type)Parameters
declaringEntityobject- The declaring entity of the type, which is either an AssemblyModel for top-level types or a TypeModel for nested types.
typeIEnumType- 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.
EnumModel(AssemblyModel, IEnumType)
Initializes a new instance of the EnumModel class as a top-level type.
public EnumModel(AssemblyModel assembly, IEnumType type)Parameters
assemblyAssemblyModel- The assembly that contains the type.
typeIEnumType- The metadata of the type represented by this instance.
Exceptions
- ArgumentNullException
- Thrown when
assemblyortypeisnull. - ArgumentException
- Thrown when
typeis not a top-level type ofassembly.
EnumModel(TypeModel, IEnumType)
Initializes a new instance of the EnumModel class as a nested type.
public EnumModel(TypeModel declaringType, IEnumType type)Parameters
declaringTypeTypeModel- The type that declares the type.
typeIEnumType- The type represented by this instance.
Exceptions
- ArgumentNullException
- Thrown when
declaringTypeortypeisnull. - ArgumentException
- Thrown when
typeis not directedly nested withindeclaringType.
