title: How to Use Enum in switch case for comparing string- C#
body: <p>I have one enum like below</p>
  
  <pre><code>public enum Colors
  {
      red,
      blue,
      green,
      yellow
  }
  </code></pre>
  
  <p>I want to use it switch case</p>
  
  <pre><code>public void ColorInfo(string colorName)
  {
      switch (colorName)
      {
          // i need a checking like (colorname=="red")
          case Colors.red:
              Console.log("red color");
              break;
      }
  }
  </code></pre>
  
  <p>I am getting following error</p>
  
  <pre><code> Cannot implicitly convert type 'Color' to string
  </code></pre>
  
  <p>Can anyone help on this ..</p>