How to get sorted data from .resx file using ResXResourceReader?

H

Hiten

Hi

i have created one .resx file for adding 38 Images...............
after creating it when i open it and reads it through
IDictionaryEnumerator or by using DictionaryEntry structure i am not
getting images in order i have added in resource it means following

resx file is created with A B C D.... images
when i read resx file i am not getting in A B C D .... order it is in
any order but it has all images

please any one can tell me how do i come out with this problem

thanks in advance
 
N

Nicholas Paldino [.NET/C# MVP]

Hiten,

Why not name the images in such a way that you can order them to your
liking? Then, you can order the list of images, and process them
accordingly.

The list isn't ordered the way you add it because it is a dictionary,
which doesn't maintain the order in which elements are added (the idea is
that they are accessed by key, not order, which is more like a list).

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top