Can you test the contents first to make sure you're not going to get an Exception?
If you're using Linq, can you set your "where" clause to only get data that exists in the master list?
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
If it never changes or it is small, it's not a problem.
Handling an exception in a loop might take more time.
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402