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