c# - XmlEnum Multiple name for a single value -


i have scenario, declaring enum type. this:

[serializable] [xmltypeattribute(namespace = "urn:un:unece:uncefact:codelist:specification:5639:1988")] public enum languagecodecontenttype {     /// <summary>     /// afar     /// </summary>     [xmlenum(name = "aa")]     aa,     /// <summary>     /// abkhazian     /// </summary>     [xmlenum(name = "ab")]     ab,     /// <summary>     /// afrikaans     /// </summary>     [xmlenum(name = "af")]     af,     [...] } 

now need declaring multiple name each value of enum. this

[serializable] [xmltypeattribute(namespace = "urn:un:unece:uncefact:codelist:specification:5639:1988")] public enum languagecodecontenttype {     /// <summary>     /// afar     /// </summary>     [xmlenum(name = "aa"),xmlenum(name = "aa")]     aa,     /// <summary>     /// abkhazian     /// </summary>     [xmlenum(name = "ab", xmlenum(name = "bb"))]     ab,     /// <summary>     /// afrikaans     /// </summary>     [xmlenum(name = "af"), xmlenum(name = "af")]     af,     [...] } 


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -