IL系列文章之三:Array in IL[6]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 windfast_2000 的 blog

                            //cast int to a new string instance and stord it into local_2

                   call       void [mscorlib]system.console::writeline(string)//print it

                   ldloc.s    v_4

                   ldc.i4.1

                   add

                   stloc.s    v_4

    loopforeach:  ldloc.s    v_4//index of v_3[]

                   ldloc.3

                   ldlen

                   conv.i4//conver len to int32

                   blt.s      startforeach

 

                   ret//return, must exist, or else the program will stop here

  } // end of method array1::main

}

         分析这段程序我们可以看出来定义一个数组的三个步骤,不知你看出了没有?

本文关键:il,cil,msil,array
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top