Answers for "dataset empty check C#"

C#
0

dataset empty check C#

// 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();
    }
  }
Posted by: Guest on August-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language