Current filter:
                                You should refresh the page.
                                0
                                  • String.Format refactoring produces incorrect result.

                                    Steps to Reproduce:

                                    Module Module1

                                        Sub Main()

                                            Dim a, b As Double

                                            Dim s As String

                                            ' apply "Use String.Format" refactoring

                                            s = a & " " & a / b

                                        End Sub

                                    End Module

                                    Actual Results:

                                    s = String.Format("{0} {0}{1}", a, b)

                                    Expected Results:

                                    s = String.Format("{0} {1}", a, a / b)

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.