Current filter:
                                You should refresh the page.
                                  • See attached example.

                                    If you have {0} in the string twice, then execute Introduce Format Item, it uses {2} for the new item instead of {1}:

                                    Example:

                                    [VB.NET]
                                    Dim myString As String = String.Format("Hello {0}, I see that your full name is {0} Last", first)

                                    If you highlight "Last" and execute Introduce Format Item, you get:

                                    [VB.NET]
                                    Dim myString As String = String.Format("Hello {0}, I see that your full name is {0} {2}", first, "Last")

                                    instead of:

                                    [VB.NET]
                                    Dim myString As String = String.Format("Hello {0}, I see that your full name is {0} {1}", first, "Last")

                                    This is in VB.NET, not sure about C#

                                • Igor K. (DevExpress) 05.24.2017

                                  Hi Eric,

                                  Thank you for reporting the issue to us. I managed to reproduce it on my side and passed the ticket to our team.
                                  Please give us some time to prepare and publish the fix.

                                  Regards,
                                  Igor

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed: