public static void Validate(IAnnotatedMethod method) { if (method.Method.IsGenericMethodDefinition) { throw new InjectionPointException(method.Method, "Cannot inject into a generic method"); } }
public ProducerMethod(IWeldComponent declaringComponent, IAnnotatedMethod method, WeldComponentManager manager) : this(declaringComponent, method.Method, method.Annotations, manager) { }