I have enum:
public enum Operation { /// [System.Xml.Serialization.XmlEnumAttribute(\"01\")] Item01, ///
You have to use Reflection to get the attribute value:
var value = Operation.Item02; var attributeValue = ((XmlEnumAttribute)typeof(Operation) .GetMember(value.ToString())[0] .GetCustomAttributes(typeof(XmlEnumAttribute), false)[0]) .Name;