Method IsStruct
IsStruct(TypeReference)
Determine if the given type is a struct (also known as "value type") or struct-alike (f.e. primitive).
public static bool IsStruct(this TypeReference type)
Parameters
type
TypeReference- The type to check.
Returns
- bool
- True if the type is a struct, primitive or similar, false otherwise.