Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
    }
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dataset #empty #check
ADD COMMENT
Topic
Name
7+8 =