DataSet HasTables Method
DataSet Extentions.
Add Methods to Objects.
So, it's getting me tired to always right:
if (ds != null && ds.Tables.Count > 0)
to make sure that a certain dataset really has tables inside.
So here is an extension I added to the DataSet object:
Simple, yet efficient :)
Elad Shalom,
CTO at ITweetLive.com
Add Methods to Objects.
So, it's getting me tired to always right:
if (ds != null && ds.Tables.Count > 0)
to make sure that a certain dataset really has tables inside.
So here is an extension I added to the DataSet object:
public static bool HasTables(this DataSet ds) { if (ds != null && ds.Tables.Count > 0) return true; return false; }
Simple, yet efficient :)
Elad Shalom,
CTO at ITweetLive.com
birkin bag, north face outlet, hogan, nike air max, new balance shoes, louis vuitton, timberland, hollister, nfl jerseys, air jordan, louis vuitton, abercrombie and fitch, longchamp, nike free, lancel, lululemon, supra shoes, oakley pas cher, rolex watches, converse shoes, montre pas cher, louis vuitton, nike air max, michael kors, mulberry, nike free, air max, ralph lauren, burberry, air max, ralph lauren, hermes, vans, beats by dre, wedding dresses, louboutin, yoga pants, ray ban pas cher, reebok outlet, karen millen
ReplyDelete