|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FileSystem.GetDirectoriesDoes anyone know in what order the directories will be returned? (i.e.
alphabetically or in date order) Thanks > Does anyone know in what order the directories will be returned? (i.e. Regardless of which way they are currently returned, I wouldn't create a > alphabetically or in date order) mission critical application that depended on that order. I would recommend that you get them as they come and then worry about sorting them later. Even if it works now, MSFT could easily change the sort order in a future OS/Framework version as they did with reflection between 1.1 and 2.0. (see http://devauthority.com/blogs/jwooley/archive/2005/11/02/597.aspx) Jim Wooley http://devauthority.com/blogs/jwooley/default.aspx Hello Jim,
Add the entries to a SortedList object.. then you can have it sorted any way you wish. -Boo Show quote >> Does anyone know in what order the directories will be returned? >> (i.e. alphabetically or in date order) >> > Regardless of which way they are currently returned, I wouldn't create > a mission critical application that depended on that order. I would > recommend that you get them as they come and then worry about sorting > them later. Even if it works now, MSFT could easily change the sort > order in a future OS/Framework version as they did with reflection > between 1.1 and 2.0. (see > http://devauthority.com/blogs/jwooley/archive/2005/11/02/597.aspx) > > Jim Wooley > http://devauthority.com/blogs/jwooley/default.aspx |
|||||||||||||||||||||||