Thanks in advance.
Edit: Since I can not leave comments, I'll abuse the edit function, please forgive me :~)
@Mike: Well, that doesn't look too promising. I guess I'll have to implement my own container. Thank you for your help!
@Ricardo: Thanks for pointing that out. I was under the impression that only non-generic types work in js.
@Sejster: Enums are constant data types, but I need to alter the values. Also I can't iterate over them.
It may be possible that ListDictionary does what you want, though it specifically says that the order is not guaranteed over different versions of .NET, so it's possible the implementation will change
answered Jun 09 '10 at 09:13 AM
It's not typesafe like a C++ enum, and its restricted to string-integer pairs, but maybe that's sufficient for your needs.