protected bool CanResolve(ParameterInfo info) { foreach (var node in AttributeFactories) { if (null == node.Factory) { continue; } var attribute = info.GetCustomAttribute(node.Type); if (null == attribute) { continue; } // If found match, use provided factory to create expression return(Container.CanResolve(info.ParameterType, node.Name(attribute))); } return(Container.CanResolve(info.ParameterType, null)); }