Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override @SuppressWarnings("rawtypes") public boolean matches(Method method, Class targetClass)
        public override bool matches(System.Reflection.MethodInfo method, Type targetClass)
        {
            if (AnnotationUtils.getAnnotation(method, this.annotationType) != null)
            {
                return(true);
            }
            // The method may be on an interface, so let's check on the target class as well.
            System.Reflection.MethodInfo specificMethod = AopUtils.getMostSpecificMethod(method, targetClass);
            return(specificMethod != method && (AnnotationUtils.getAnnotation(specificMethod, this.annotationType) != null));
        }