コード例 #1
0
 protected InjectableMethodBase(IWeldComponent component, MethodBase method, ParameterInfo specialParameter)
 {
     Component        = component;
     _method          = method;
     SpecialParameter = specialParameter;
     IsConstructor    = _method is ConstructorInfo;
     _injectionPoints = method.GetParameters()
                        .Select(p => p == specialParameter? null: new MethodParameterInjectionPoint(component, p, AttributeUtils.GetAnnotations(p)))
                        .ToArray();
 }