EnumTypeAdapter Constructor

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

Definition

Initializes a new instance of the EnumTypeAdapter class.
public EnumTypeAdapter(object declaringEntity, Type enumType)

Parameters

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

Exceptions

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