I have the following line of code:
Dim s As String = _wv.ExecuteJavascriptWithResult("document.links[" & i.ToString() & "].innerHtml;").ToString
Now I have installed DevExpress CodeRush, and it told me I should rather use
Dim s As String = _wv.ExecuteJavascriptWithResult(String.Format("document.links[{0}].innerHTML;", i)).ToString
However, I feel that the String.Format version is less readable than the first line.
Are there any guidelines when to use StringFormat? I would like my code to be professional and easy to read.
Thank you!