ICRegILGen ResolveNeedBy(Type clrType, object key) { if (_parameterInfos != null) { foreach (var parameterInfo in _parameterInfos) { if (clrType == parameterInfo.ParameterType && (key as string == parameterInfo.Name || key == null)) { return(new SimpleParamImpl(parameterInfo.Position)); } } } return(_buildContext.ResolveNeedBy(clrType, key)); }