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