Having a project where I (intentionally) am adding multiple non-existing paths
to the list view, I get a (caught) exception in
public static ImageMetadata ImageListViewCacheMetadata.FromFile(string path,
bool useWIC)
Since exceptions have a rather bad performance, I suggest to add one single
check:
...
FileInfo info = new FileInfo(path);
if( !info.Exists ) { return imageInfo; } // <-- Add this line.
...
This would improve my program performance significantly.
Original issue reported on code.google.com by uwe.k...@gmail.com on 12 Nov 2010 at 12:57
Original issue reported on code.google.com by
uwe.k...@gmail.com
on 12 Nov 2010 at 12:57