title: Tryparse and IsDefined for Enum in C#
body: <p>All, I have to do is: </p>
  
  <p>Find out whether a string is a valid Enum element and if so, return status.</p>
  
  <p>something like, If I have an enum say Enum_Test which in turn consists of red, blue , green as its value.</p>
  
  <p>Now, if blue is the element to be verified, I use something like</p>
  
  <pre><code>Enum_Test evalue;
  if(Enum.TryParse(string_Verify, true, out evalue))  
  {
          return true;
  }
  </code></pre>
  
  <p>Or otherwise I have an another option,</p>
  
  <pre><code>if( Enum.IsDefined(typeof(Enum_Test), string_Verify))
  {
          return true;
  }
  </code></pre>
  
  <p>What is the advantages and pit falls in the above methods ?</p>