示例#1
0
 private static void GuardTypeInterceptable(Type typeToIntercept, IInterceptor interceptor)
 {
     if (!interceptor.CanIntercept(typeToIntercept))
     {
         throw new ArgumentException(
                   string.Format(
                       CultureInfo.CurrentCulture,
                       Resources.InterceptionNotSupported,
                       typeToIntercept.FullName),
                   "typeToIntercept");
     }
 }