title: How do I retrieve the string value of XmlEnum "Name"?
body: <p>I am new to XmlEnum property. I am working on a project written in C#. I have an enum class and I wanted to map each enum to a string value. So, for example, one of the enums is:</p>
  <pre><code>public enum MyEnum
  {
     ...,
     [XmlEnum(Name = &quot;Failed&quot;)]
     Failure = -1,
     ...
  }
  </code></pre>
  <p>My question is, in my code in a .cs file how do I retrieve the string value of the enum Failure? How do I get this string with &quot;Failed&quot;?
  Thanks in advance!</p>