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

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

Exceptions

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