c# - Enum for ISO3166 countries - acceptable practice? -


i'm developing asp.net mvc 3 application , uses complex model serialized/deserialized to/from xml.

some fields require iso3166 country codes. have several defined enums other restricted lists (which unlikely change) marked xmlenum attribute , displayed neatly using displyfor/editorfor templates.

in order consistent created enum of iso3166 country codes.

however aware these change overtime requiring me re-build/deploy project.

given frequency/likelyhood of iso3166 codes changing, acceptable practice?

enumerations conceptually related collection of constants, ie. they not change—a client assembly can make assumption , directly compile in value of enum field.

but iso 3166 change, often several times year. example creation of new country south sudan need reflected in update.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -