imgHtml = @"<img style=""cursor:hand"" title=""" + toolTip + @""" onclick=""launchConfirmDeleteFileVersionDlg(" + version.Id + @", '" + SysUtils.JSEncode(HtmlEncode(version.FileName)) + @"')"" src=""" + IconPath.Delete16 + @""">";
where IconPath.Delete16 is a public const string
Applying "Use string format" gives
imgHtml = string.Format(@"<img style=""cursor:hand"" title=""{0}"" onclick=""launchConfirmDeleteFileVersionDlg({1}, '{2}')"" src=""{3}"">", toolTip, version.Id, SysUtils.JSEncode(HtmlEncode(version.FileName)), IconPath.Delete16);
I would much prefer
imgHtml = string.Format(@"<img style=""cursor:hand"" title=""{0}"" onclick=""launchConfirmDeleteFileVersionDlg({1}, '{2}')"" src=""" + IconPath.Delete16 + @""">", toolTip, version.Id, SysUtils.JSEncode(HtmlEncode(version.FileName)));
since the runtime can compute the static string at load time anyway, and it makes it clearer what can actually vary.
This would probably be a configurable option.