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

declaryingEntity object
The object that declares the type, which is either an AssemblyModel for top-level types or a TypeModel for nested types.
type IInterfaceType
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.

InterfaceModel(AssemblyModel, IInterfaceType)

Initializes a new instance of the InterfaceModel class as a top-level type.
public InterfaceModel(AssemblyModel assembly, IInterfaceType type)

Parameters

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

InterfaceModel(TypeModel, IInterfaceType)

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

Parameters

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