views:

22

answers:

2

Is there a way to change the order of keys in a resx file? I'm only using strings if that makes a difference.

A: 

Have you tried opening it as an XML file and editing it?

Steven Sudit
i tried, didn't work for some reason..
Andreas
Ok, the the issue isn't the file, it's the in-memory representation. Hans was right.
Steven Sudit
+2  A: 

Not really, a .resx file behaves like a dictionary. Dictionaries are unordered collections, you find stuff back through the key value, the order is unimportant. Technically you can, with a text editor.

Hans Passant