Current filter:
                                You should refresh the page.
                                  • Hi

                                    Just doing some clean up and found a possible bug:

                                    I have it set to change double quotes  ("") to string.Empty as I much prefer this for readability etc. However when cleaning up a switch case with this in, it we then get an error on the line:

                                    switch (DataUtils.GetParameterString(m_Command, "@acc_status")) { case "": // Account is currently open CreditAccStatusLabel.Text = Resources.MsgAccountIsOpen; break; case "S": // Account is currently suspended CreditAccStatusLabel.Text = Resources.MsgAccountIsSuspended; break; case "C":

                                    the above is cleaned to become this:

                                    switch (DataUtils.GetParameterString(m_Command, "@acc_status")) { case string.Empty:

                                    as you can see the case "": has been changed to string.Empty.

                                    However VS will now throw an error on this line:

                                    Error CS0150 - A constant value is expected

                                    Hope this helps to clear this up.


                                • Pavel A (DevExpress) 12.20.2016

                                  Hello Alan,

                                  Thank you for pointing out this issue and providing a code sample.
                                  I have reproduced this, and we agree that Code CleanUp should not replace the "" literal in switch case clause.

                                  We will notify you as soon as we fix this issue.

                                • Alan Middleton999 12.20.2016

                                  Excellent news, Thanks for letting me know Pavel. Glad to help, love the product.

                                • Pavel A (DevExpress) 12.20.2016

                                  Thank you for your kind words, Alan. Have a really nice day!

                                1 Solution

                                Creation Date Importance Sort by


                                • Alan Middleton999 12.20.2016

                                  WOW fixed already - great work guys, thanks :)

                                • Pavel A (DevExpress) 12.20.2016

                                  You are welcome, Alan.
                                  The fix will be available with the next update.