Thomas Tempelmann wrote:
The only use of indexing a directory by a number from 1 to f.Count()
was to get all items of a dir. It can't be used for anything else. You
cannot store the index and then later expect that if you get the item
for the same index, you'll get the same item, because other files may
have been added (or subtracted) to the dir in the mean time. And even
for that way to get all items in a dir, it's counter-intuitive to use
an index number. All you want is: All Items in the Folder, then
operate on that result.
This is a good point, and it suggests that we should simply add an Items
(and TrueItems) extension method to FolderItem and have done with it.
This is trivial to do; no need to wait for RS to add it for us.
Best,
- Joe
--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|