コード例 #1
0
 public static void InterceptAllMethodBodies(this IReflectionVisitable target)
 {
     target.InterceptMethodBody(m => true);
 }
コード例 #2
0
 /// <summary>
 /// Intercepts all method bodies on the target item.
 /// </summary>
 /// <param name="target">The target to be modified.</param>
 /// <param name="methodFilter">The method filter that will determine the methods that will be modified.</param>
 public static void InterceptMethodBody(this IReflectionVisitable target, IMethodFilter methodFilter)
 {
     target.InterceptMethodBody(methodFilter.ShouldWeave);
 }