InterfaceTypeAdapter Constructor

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll

Definition

Initializes a new instance of the InterfaceTypeAdapter class.
public InterfaceTypeAdapter(object declaringEntity, Type interfaceType)

Parameters

declaringEntity object
The assembly or type that declares the interface type.
interfaceType Type
The reflection information of the interface type to wrap.

Exceptions

ArgumentNullException
Thrown when declaringEntity or interfaceType is null.
ArgumentException
Thrown when declaringEntity is neither an IAssembly nor an IType.
Thrown when interfaceType is not declared by the declaringEntity.
Thrown when interfaceType is a nested type but declaringEntity is an assembly, or when interfaceType is a top-level type but declaringEntity is a type.
Thrown when interfaceType is not an interface.