DelegateTypeAdapter Constructor
- Namespace
- Kampute.DocToolkit.Metadata.Adapters
- Assembly
- Kampute.DocToolkit.dll
Definition
Initializes a new instance of the DelegateTypeAdapter class.
public DelegateTypeAdapter(object declaringEntity, Type delegateType)Parameters
declaringEntityobject- The assembly or type that declares the delegate type.
delegateTypeType- The reflection information of the delegate type to wrap.
Exceptions
- ArgumentNullException
- Thrown when
declaringEntityordelegateTypeisnull. - ArgumentException
- Thrown when
declaringEntityis neither an IAssembly nor an IType. - Thrown when
delegateTypeis not declared by thedeclaringEntity. - Thrown when
delegateTypeis a nested type butdeclaringEntityis an assembly, or whendelegateTypeis a top-level type butdeclaringEntityis a type. - Thrown when
delegateTypeis not a delegate.
