Re: Scott Hanselman's mistake

I watched the video link to see him doing what you claimed to be a mistake. But as far as I see, he is not doing anything wrong there. He is not replacing an ObservableCollection which is already in use. What he replaces is the one which he creates at the start of his function, so since he is still inside the routine when he replaces it, he is perfectly safe and it does not lead him to lose the intended functionality by any means. I agree that the code would have been better if he initializes it just inside the catch block itself so there would not be any replace actions, but that's a separate issue altogether.


By submitting this form, you accept the Mollom privacy policy.