none
例子中哪些是元数据? RRS feed

  • 问题

  • .method private hidebysig instance void  AppendEscapedChar(class [mscorlib]System.Text.StringBuilder b,
                                                               char 'value') cil managed
    {
      // 代码大小       89 (0x59)
      .maxstack  4
      .locals init (int32 V_0,
               int32 V_1)
      IL_0000:  ldarg.1
      IL_0001:  brtrue.s   IL_0032
      IL_0003:  ldarg.0
      IL_0004:  call       instance class [mscorlib]System.IO.TextWriter Microsoft.CSharp.CSharpCodeGenerator::get_Output()
      IL_0009:  ldstr      "\\u"
      IL_000e:  callvirt   instance void [mscorlib]System.IO.TextWriter::Write(string)
      IL_0013:  ldarg.0
      IL_0014:  call       instance class [mscorlib]System.IO.TextWriter Microsoft.CSharp.CSharpCodeGenerator::get_Output()
      IL_0019:  ldarg.2
      IL_001a:  stloc.0
      IL_001b:  ldloca.s   V_0
      IL_001d:  ldstr      "X4"
      IL_0022:  call       class [mscorlib]System.Globalization.CultureInfo [mscorlib]System.Globalization.CultureInfo::get_InvariantCulture()
      IL_0027:  call       instance string [mscorlib]System.Int32::ToString(string,
                                                                            class [mscorlib]System.IFormatProvider)
      IL_002c:  callvirt   instance void [mscorlib]System.IO.TextWriter::Write(string)
      IL_0031:  ret
      IL_0032:  ldarg.1
      IL_0033:  ldstr      "\\u"
      IL_0038:  callvirt   instance class [mscorlib]System.Text.StringBuilder [mscorlib]System.Text.StringBuilder::Append(string)
      IL_003d:  pop
      IL_003e:  ldarg.1
      IL_003f:  ldarg.2
    ......

    请大家指出一个来。MSDN关于元数据的解释太文字性了,缺乏例子和图片,不容易理解。
    2012年10月7日 10:44

答案

全部回复