Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
GeneralRe: Retrieve Filenames Distinctively Pin
#realJSOP16-Jan-09 5:35
mve#realJSOP16-Jan-09 5:35 
AnswerRe: Retrieve Filenames Distinctively [modified] Pin
Luc Pattyn16-Jan-09 6:56
sitebuilderLuc Pattyn16-Jan-09 6:56 
AnswerRe: Retrieve Filenames Distinctively Pin
Ashfield16-Jan-09 2:42
Ashfield16-Jan-09 2:42 
AnswerRe: Retrieve Filenames Distinctively Pin
User 665816-Jan-09 2:51
User 665816-Jan-09 2:51 
AnswerRe: Retrieve Filenames Distinctively Pin
Vikram A Punathambekar16-Jan-09 3:15
Vikram A Punathambekar16-Jan-09 3:15 
GeneralRe: Retrieve Filenames Distinctively Pin
User 665816-Jan-09 3:28
User 665816-Jan-09 3:28 
GeneralRe: Retrieve Filenames Distinctively Pin
Vikram A Punathambekar16-Jan-09 4:03
Vikram A Punathambekar16-Jan-09 4:03 
AnswerRe: Retrieve Filenames Distinctively [modified] Pin
Luc Pattyn16-Jan-09 4:40
sitebuilderLuc Pattyn16-Jan-09 4:40 
Hi,

IMO it would be faster to interrogate the file system only once (with the most restricting filter that still passes everything of interest) and then either modify the collection (by removing the unwanted entries, or creating a new one that only contains the wanted ones, i.e. applying a software filter once),
or best of all performance-wise just use the one collection and skip the unwanted files while enumerating.

Also going to the file system twice may return inconsistent information, in between the two calls some files may have been added and removed!

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).


modified on Friday, June 10, 2011 12:21 PM

GeneralRe: Retrieve Filenames Distinctively Pin
Vikram A Punathambekar16-Jan-09 4:43
Vikram A Punathambekar16-Jan-09 4:43 
GeneralRe: Retrieve Filenames Distinctively Pin
S. Senthil Kumar16-Jan-09 7:30
S. Senthil Kumar16-Jan-09 7:30 
AnswerRe: Retrieve Filenames Distinctively [modified] Pin
Luc Pattyn16-Jan-09 8:00
sitebuilderLuc Pattyn16-Jan-09 8:00 
GeneralRe: Retrieve Filenames Distinctively Pin
Giorgi Dalakishvili16-Jan-09 9:56
mentorGiorgi Dalakishvili16-Jan-09 9:56 
GeneralRe: Retrieve Filenames Distinctively Pin
Vimalsoft(Pty) Ltd16-Jan-09 3:28
professionalVimalsoft(Pty) Ltd16-Jan-09 3:28 
GeneralRe: Retrieve Filenames Distinctively Pin
Eddy Vluggen16-Jan-09 4:01
professionalEddy Vluggen16-Jan-09 4:01 
AnswerRe: Retrieve Filenames Distinctively Pin
Henry Minute16-Jan-09 4:52
Henry Minute16-Jan-09 4:52 
GeneralRe: Retrieve Filenames Distinctively Pin
Vimalsoft(Pty) Ltd18-Jan-09 20:02
professionalVimalsoft(Pty) Ltd18-Jan-09 20:02 
QuestionCrystal Report Paper Size Pin
Wlink16-Jan-09 0:47
Wlink16-Jan-09 0:47 
AnswerRe: Crystal Report Paper Size Pin
ambarishtv27-Apr-11 5:31
ambarishtv27-Apr-11 5:31 
QuestionHello Peoples, Pin
Hema Bairavan16-Jan-09 0:45
Hema Bairavan16-Jan-09 0:45 
RantRe: Hello Peoples, Pin
Guffa16-Jan-09 1:16
Guffa16-Jan-09 1:16 
AnswerRe: Hello Peoples, Pin
Tom Deketelaere16-Jan-09 1:44
professionalTom Deketelaere16-Jan-09 1:44 
GeneralRe: Hello Peoples, Pin
Hema Bairavan16-Jan-09 4:30
Hema Bairavan16-Jan-09 4:30 
QuestionOk Mr Tom Pin
Hema Bairavan16-Jan-09 4:46
Hema Bairavan16-Jan-09 4:46 
AnswerRe: Ok Mr Tom Pin
Tom Deketelaere16-Jan-09 4:52
professionalTom Deketelaere16-Jan-09 4:52 
QuestionCaching Method Pin
satsumatable16-Jan-09 0:27
satsumatable16-Jan-09 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.