title: Get XmlEnumAttribute from enum
body: <p>I have enum:</p>
  
  <pre><code>public enum Operation {
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlEnumAttribute("01")]
      Item01,
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlEnumAttribute("02")]
      Item02,
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlEnumAttribute("03")]
      Item03,
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlEnumAttribute("04")]
      Item04,
  }
  </code></pre>
  
  <p>How I can get XmlEnumAttribute value?</p>
  
  <p>I'm trying at that:</p>
  
  <pre><code>var res = Operation.Item1;
  var result = (res.GetType().GetField("Item01").GetCustomAttributes(typeof(XmlEnumAttribute), true)[0] as XmlEnumAttribute).Name;
  </code></pre>
  
  <p>May be exists better method?</p>