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