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:
C#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:
C#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.
Cheers
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.
Excellent news, Thanks for letting me know Pavel. Glad to help, love the product.
Thank you for your kind words, Alan. Have a really nice day!