internal static ActionInfoWithDynamicImageMap CreateActionInfoDynamic(ReportItem reportItem, ActionInfo actionInfo, string toolTip, out string href, bool applyExpression) { Action actionFromActionInfo = GetActionFromActionInfo(actionInfo); if (actionFromActionInfo == null) { href = null; } else { href = EvaluateHref(actionFromActionInfo, out bool isExpression); if (isExpression && !applyExpression) { href = null; } } bool flag = actionFromActionInfo == null || href == null; bool flag2 = string.IsNullOrEmpty(toolTip); if (flag && flag2) { return(null); } ActionInfoWithDynamicImageMap actionInfoWithDynamicImageMap; if (!flag) { actionInfoWithDynamicImageMap = new ActionInfoWithDynamicImageMap(reportItem.RenderingContext, reportItem, actionInfo.ReportScope, actionInfo.InstancePath, actionInfo.ROMActionOwner, chartConstructor: true); if (actionFromActionInfo.BookmarkLink != null) { actionInfoWithDynamicImageMap.CreateBookmarkLinkAction().Instance.BookmarkLink = href; } else if (actionFromActionInfo.Hyperlink != null) { actionInfoWithDynamicImageMap.CreateHyperlinkAction().Instance.HyperlinkText = href; } else if (actionFromActionInfo.Drillthrough != null) { Action action = actionInfoWithDynamicImageMap.CreateDrillthroughAction(); action.Drillthrough.Instance.ReportName = href; EvaluateActionParameters(actionFromActionInfo.Drillthrough, action.Drillthrough); _ = action.Drillthrough.Instance.DrillthroughID; } } else { actionInfoWithDynamicImageMap = new ActionInfoWithDynamicImageMap(reportItem.RenderingContext, reportItem, reportItem.ReportScope, reportItem.ReportItemDef, null, chartConstructor: true); } return(actionInfoWithDynamicImageMap); }