CIL stack exchange instruction

后端 未结 4 2199
走了就别回头了
走了就别回头了 2021-02-14 15:03

Is there a CIL instruction to exchange the first two elements in the stack?

4条回答
  •  青春惊慌失措
    2021-02-14 15:38

    There is no single instruction exchange. However, using stloc, pop, and ldloc, you should be able to accomplish your exchange.

提交回复
热议问题