[nem-en] test-498.n failing

Snaury snaury at gmail.com
Sun Jul 2 12:46:27 CEST 2006


Hi everyone,

Is this normal that test-498.n fails on MS.NET? I tried to do some
investigation and found that the following code:

        MethodBuilder myMethodBuilder = myType.DefineMethod(
            "TestMethod",
            MethodAttributes.HideBySig
                | MethodAttributes.Public,
            null,
            null);

        myMethodBuilder.SetImplementationFlags(MethodImplAttributes.InternalCall);

so when you apply InternalCall implementation flag on method builder,
the method body is not required, and that's ok. However, when looking
at ildasm output:

  .method public hidebysig instance void  TestMethod() cil managed internalcall
  {
    // Code size       0 (0x0)
  } // end of method Sample::TestMethod

Is this another MS.NET bug? A comment like that suggests that method
body is created, it just has a size of zero. O.o



More information about the devel-en mailing list