System.InvalidProgramException : Invalid IL code

なんか、Monoのランタイムに怒られた。

L_001a: ldstr

が、駄目らしいのですが、MS.NETだと動くので何が悪いやら。とりあえず、ILコードを貼り付けてみることに。(^^;

.method private hidebysig static void  Main() cil managed
{
  .entrypoint
  // コード サイズ       42 (0x2a)
  .maxstack  2
  .locals init (valuetype [mscorlib]System.Nullable`1<int32> V_0,
           valuetype [mscorlib]System.Nullable`1<int32> V_1)
  IL_0000:  ldc.i4.0
  IL_0001:  call       valuetype [mscorlib]System.Nullable`1<!0> valuetype [mscorlib]System.Nullable`1<int32>::op_Implicit(!0)
  IL_0006:  stloc.0
  IL_0007:  ldloc.0
  IL_0008:  stloc.1
  IL_0009:  ldloc.1
  IL_000a:  ldnull
  IL_000b:  unbox      valuetype [mscorlib]System.Nullable`1<int32>
  IL_0010:  ldobj      valuetype [mscorlib]System.Nullable`1<int32>
  IL_0015:  bne.un     IL_0029
  IL_001a:  ldstr      "null"
  IL_001f:  call       void [mscorlib]System.Console::WriteLine(string)
  IL_0024:  br         IL_0029
  IL_0029:  ret
} // end of method _N_AutoModule::Main