.NET - Mapping more than one string value to XmlEnumAttribute
<p>I have an enum that is trying to parse a string as an enum value, which works for many situations, but I started getting SOAP values that tried to resolve the same type of one of my enums, but the casing of the string was different, so I made a quick solution like this:</p>

<pre><code>public enum RepoType
{

    /// &lt;remarks/&gt;
    local,

    /// &lt;remarks/&gt;
    central,

    /// &lt;remarks/&gt;
    [System.Xml.Serialization.XmlEnumAttribute("secure central")]        
    securecentral,

    /// &lt;remarks/&gt;
    [System.Xml.Serialization.XmlEnumAttribute("Secure central")]
    Securecentral,

    /// &lt;remarks/&gt;
    profiler,
}
</code></pre>

<p>Note how there are two types called Secure central, but sometimes I receive "secure central" and sometimes I receive "Secure central".</p>

<p>My question is there a simplified way or a unified way to handle this situation?</p>

<p>Thanks in advance.</p>