塞西尔:对应Instruction.OpCode.Code值Instruction.Operand类型 [英] cecil: Instruction.Operand types corresponding to Instruction.OpCode.Code value

查看:292
本文介绍了塞西尔:对应Instruction.OpCode.Code值Instruction.Operand类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何文件或者是有塞西尔源代码,我可以咨询以获得其中的操作数类型塞西尔将使用一个给定的综合视图的一部分代码价值?例如:我可以从 MethodBodyRocks 收集了 Ldloc 需要一个操作数 VariableDefinition ,但我一直无法追查下来了一些其他的指令代码。

Is there any documentation or is there a part of the cecil source code that I can consult to get a comprehensive view of which Operand types cecil will use for a given Code value? Eg: I can glean from MethodBodyRocks that Ldloc takes an Operand of type VariableDefinition, but I haven't been able to track down this down for some of the other instruction codes.

推荐答案

您可以看一下在的 OpCodes.cs 文件。

You can look at the definition of every OpCode in the OpCodes.cs file.

例如。对于 Ldloc 你会看到的 OperandType.InlineVar

E.g. for Ldloc you would see OperandType.InlineVar

这篇关于塞西尔:对应Instruction.OpCode.Code值Instruction.Operand类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆