示例#1
0
 /// <summary>
 /// Enumerates all methods in the current module
 /// </summary>
 public static void ForEachMethod(this ModuleDefinition module, Action <MethodDefinition> callback)
 {
     module.ForEachType(type =>
     {
         foreach (var mth in type.Methods)
         {
             callback.Invoke(mth);
         }
     });
 }