本文整理汇总了C#中IInstructionVisitor.OnLdloc方法的典型用法代码示例。如果您正苦于以下问题:C# IInstructionVisitor.OnLdloc方法的具体用法?C# IInstructionVisitor.OnLdloc怎么用?C# IInstructionVisitor.OnLdloc使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IInstructionVisitor
的用法示例。
在下文中一共展示了IInstructionVisitor.OnLdloc方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DispatchLdloc
static void DispatchLdloc (IInstructionVisitor visitor, Instruction instruction)
{
visitor.OnLdloc (instruction);
}
示例2: Dispatch
public static void Dispatch (Instruction instruction, IInstructionVisitor visitor)
{
switch (instruction.OpCode.Code) {
case Code.Nop:
visitor.OnNop (instruction);
return;
case Code.Break:
visitor.OnBreak (instruction);
return;
case Code.Ldarg_0:
visitor.OnLdarg_0 (instruction);
return;
case Code.Ldarg_1:
visitor.OnLdarg_1 (instruction);
return;
case Code.Ldarg_2:
visitor.OnLdarg_2 (instruction);
return;
case Code.Ldarg_3:
visitor.OnLdarg_3 (instruction);
return;
case Code.Ldloc_0:
visitor.OnLdloc_0 (instruction);
return;
case Code.Ldloc_1:
visitor.OnLdloc_1 (instruction);
return;
case Code.Ldloc_2:
visitor.OnLdloc_2 (instruction);
return;
case Code.Ldloc_3:
visitor.OnLdloc_3 (instruction);
return;
case Code.Stloc_0:
visitor.OnStloc_0 (instruction);
return;
case Code.Stloc_1:
visitor.OnStloc_1 (instruction);
return;
case Code.Stloc_2:
visitor.OnStloc_2 (instruction);
return;
case Code.Stloc_3:
visitor.OnStloc_3 (instruction);
return;
case Code.Ldarg:
case Code.Ldarg_S:
visitor.OnLdarg (instruction);
return;
case Code.Ldarga:
case Code.Ldarga_S:
visitor.OnLdarga (instruction);
return;
case Code.Starg:
case Code.Starg_S:
visitor.OnStarg (instruction);
return;
case Code.Ldloc:
case Code.Ldloc_S:
visitor.OnLdloc (instruction);
return;
case Code.Ldloca:
case Code.Ldloca_S:
visitor.OnLdloca (instruction);
return;
case Code.Stloc:
case Code.Stloc_S:
visitor.OnStloc (instruction);
return;
case Code.Ldnull:
visitor.OnLdnull (instruction);
return;
case Code.Ldc_I4_M1:
visitor.OnLdc_I4_M1 (instruction);
return;
case Code.Ldc_I4_0:
visitor.OnLdc_I4_0 (instruction);
return;
case Code.Ldc_I4_1:
visitor.OnLdc_I4_1 (instruction);
return;
case Code.Ldc_I4_2:
visitor.OnLdc_I4_2 (instruction);
return;
case Code.Ldc_I4_3:
visitor.OnLdc_I4_3 (instruction);
return;
case Code.Ldc_I4_4:
visitor.OnLdc_I4_4 (instruction);
return;
case Code.Ldc_I4_5:
visitor.OnLdc_I4_5 (instruction);
return;
case Code.Ldc_I4_6:
visitor.OnLdc_I4_6 (instruction);
return;
case Code.Ldc_I4_7:
visitor.OnLdc_I4_7 (instruction);
return;
case Code.Ldc_I4_8:
//.........这里部分代码省略.........