StructTypeAdapter Constructor

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

Definition

Initializes a new instance of the StructTypeAdapter class.
public StructTypeAdapter(object declaringEntity, Type structType)

Parameters

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

Exceptions

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