📅  最后修改于: 2022-03-11 14:49:09.104000             🧑  作者: Mango
// using extension method
public static class ExtensionMethods {
public static bool IsEmpty(this DataSet dataSet) {
return dataSet == null ||
!(from DataTable t in dataSet.Tables where t.Rows.Count > 0 select t).Any();
}
}