title: C# enum contains value
body: <p>I have an enum</p>
  
  <pre><code>enum myEnum2 { ab, st, top, under, below}
  </code></pre>
  
  <p>I would like to write a function to test if a given value is included in myEnum</p>
  
  <p>something like that:</p>
  
  <pre><code>private bool EnumContainValue(Enum myEnum, string myValue)
  {
       return Enum.GetValues(typeof(myEnum))
                  .ToString().ToUpper().Contains(myValue.ToUpper()); 
  }
  </code></pre>
  
  <p>But it doesn't work because myEnum parameter is not recognized.</p>