Why isn't there a culture enum?

前端 未结 4 1868
执笔经年
执笔经年 2021-02-20 18:20

Greetings,

I was wondering why there isn\'t a pre-set enum for cultures in C#? Since the cultures never change and are always like \"nl-NL, en-GB, en-US\".. why not make

4条回答
  •  执念已碎
    2021-02-20 19:12

    They do change, albeit slowly. In any case, they predate C#, so making them into an enum at this point would be kludgery. Like making POSIX system calls into an enum, which I did in postForth, but knew it was wrong when I did it.

提交回复
热议问题