public static void WriteElement(this XmlWriter xmlWriter, string localName, Enum value)
 {
     xmlWriter.WriteElementString(localName, value.ToXmlString());
 }