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

  • Thread starter Thread starter Hiten
  • Start date Start date
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
 
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.
 
Back
Top