Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以复制顶部堆栈项目并将其推回?我只知道使用这样的辅助局部变量的解决方案:
stloc.n ldloc.n ldloc.n
是否存在用于复制堆栈项的 IL 指令?是否可以避免使用辅助局部变量?
你看了OpCodes.Dup吗,它复制了顶部的堆栈项?
OpCodes.Dup