本文整理匯總了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