title: How to resolve CA1820 for switch statement
body: <p>I am getting following FxCop error:</p>
  
  <blockquote>
    <p>CA1820 : Microsoft.Performance : Replace the call to 'string.operator ==(string, string)' in 'Program.Main()' with a call to 'String.IsNullOrEmpty'.</p>
  </blockquote>
  
  <pre><code> static void Main()
      {
          string str = "abc";
  
          switch (str)
          {
              case "":
                  Console.WriteLine("Hello");
                  break;
          }
  
          Console.ReadLine();
      }
  </code></pre>