public void AssertTypeCode(GroBufTypeCode expectedTypeCode) { Il.Ldloc(TypeCode); // stack: [typeCode] Il.Ldc_I4((int)expectedTypeCode); // stack: [typeCode, expectedTypeCode] var okLabel = Il.DefineLabel("ok"); Il.Beq(okLabel); SkipValue(); Il.Ret(); Il.MarkLabel(okLabel); }