In regards to the 'Avoid unnecessary string creation' rule, I am trying to determine how to change my code to not break this rule, but not to change my code from a SWITCH statement to an IF statement.
How should the rule be applied to the following code?
string param = "abc";
switch (param.ToUpper())
{case "ABC":
// Do abc processing
break;
case "DEF":
// Do def processing
break;
case "GHI":
}