M
Marek
Hi
I am trying to dynamically create a struct using the following code:
TypeBuilder typeBuilder = moduleBuilder.DefineType("MyStruct",
TypeAttributes.Public);
It appears that this method will only ever create classes for me. Is there
any way of dynamically creating a struct? I noticed that other constructs
such as enums have their own equivalent define method (DefineEnum), but
couldn't see a way of doing this for structs.
I have to use a struct as this object is passed to a FORTRAN DLL which does
not like the class equivalent.
Best regards
Marek
I am trying to dynamically create a struct using the following code:
TypeBuilder typeBuilder = moduleBuilder.DefineType("MyStruct",
TypeAttributes.Public);
It appears that this method will only ever create classes for me. Is there
any way of dynamically creating a struct? I noticed that other constructs
such as enums have their own equivalent define method (DefineEnum), but
couldn't see a way of doing this for structs.
I have to use a struct as this object is passed to a FORTRAN DLL which does
not like the class equivalent.
Best regards
Marek