Hi Kenneth, Try setting TypeDef.ClassSize. The default for this property probably won't work in your case.
Regards, Alex On Fri, Jul 22, 2011 at 8:28 AM, Kenneth Skovhede <[email protected]> wrote: > When I emit a struct that has no fields, only functions, everything seems to > work, > but PEVerify gives an error: > [MD]: Error: Value class has neither fields nor size parameter. > [token:0x02000002] > I have been looking for some way to set the "size parameter" but can't find > it. > Is there any way I can make the error to go away, besides adding a dummy > field? > Regards, Kenneth > > -- > -- > mono-cecil -- -- mono-cecil
