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
Post a Comment