Do not use such a construct:
if (something.Count() == 0) { ... }
We are not interested in the real count of items in something.
Only the presence of items is the point of our interest.
So write instead of above this:
if (something.Any()) { ... }
This will stop at the first item which will result in better performance in
cases where something contains a lot of items.
Really Appreciate this update, can I set it up so I get an email every time you publish a new post?
Hi!
No such service set up yet.
Please use http://pingomatic.com/ or something like that.
S