Thank you! On Nov 30, 1:05 pm, Jb Evain <[email protected]> wrote: > Hi, > > > > On Tue, Nov 30, 2010 at 5:36 PM, Jeff Nevins <[email protected]> wrote: > > Hi, > > > I must be missing something stupid, but I'm adding a method and some > > fields to a type, but then I get a stack underflow verification error > > with PEVerify: > > > My emitted IL looks like: > > > .method private hidebysig static void _SetMethodFields() cil managed > > { > > .maxstack 1 > > L_0001: ldnull > > L_0002: stfld class [mscorlib]System.Reflection.MethodBase > > NSight.Workstation.Applications.Common.com.ipreo.wsirm.securityservice.SecurityService::ctor_0 > > L_005b: ret > > For static fields, you need to use stsfld/ldsfld instead of stfld/ldfld. > > Jb
-- -- mono-cecil
