Development Architecture blog is designed for developers who have some troubles in their code.
This blog will be mainly on web development, though many of it's posts can be used also on software design.
I wish you nothing but the best,
So, it's getting me tired to always right: if (dt != null && dt.Rows.Count > 0)
to make sure that a certain table really have rows.
So here is an extension I added to the DataTable object: publicstaticbool HasRows(thisDataTable dt)
if (dt != null && dt.Rows.Count > 0)
Simple, yet efficient :)
CTO at ITweetLive.com