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