本文整理汇总了C#中Mono.Cecil.Cil.Instruction.GetStoreIndex方法的典型用法代码示例。如果您正苦于以下问题:C# Instruction.GetStoreIndex方法的具体用法?C# Instruction.GetStoreIndex怎么用?C# Instruction.GetStoreIndex使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mono.Cecil.Cil.Instruction
的用法示例。
在下文中一共展示了Instruction.GetStoreIndex方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VerifyStoreLocalInstruction
private void VerifyStoreLocalInstruction (Instruction ins, int stack_count)
{
List<MethodDefinition> pointers;
int index = ins.GetStoreIndex ();
pointers = (stack_count <= 0) ? null : GetDelegatePointers (locals, stack [stack_count - 1]);
Log.WriteLine (this, " Reached a local variable store at offset {2:X}. index {0}, there are {1} pointers here.", index, pointers == null ? 0 : pointers.Count, ins.Offset);
if (pointers != null && pointers.Count > 0) {
while (locals.Count <= index)
locals.Add (null);
if (locals [index] == null)
locals [index] = new List<MethodDefinition> ();
locals [index].AddRange (pointers);
}
}
开发者ID:nolanlum,项目名称:mono-tools,代码行数:17,代码来源:DelegatesPassedToNativeCodeMustIncludeExceptionHandlingRule.cs