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
declaringEntityobject- The assembly or type that declares the interface type.
interfaceTypeType- The reflection information of the interface type to wrap.
Exceptions
- ArgumentNullException
- Thrown when
declaringEntityorinterfaceTypeisnull. - ArgumentException
- Thrown when
declaringEntityis neither an IAssembly nor an IType. - Thrown when
interfaceTypeis not declared by thedeclaringEntity. - Thrown when
interfaceTypeis a nested type butdeclaringEntityis an assembly, or wheninterfaceTypeis a top-level type butdeclaringEntityis a type. - Thrown when
interfaceTypeis not an interface.
