Search
 
SCRIPT & CODE EXAMPLE
 

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();
    }
  }
Comment

PREVIOUS NEXT
Code Example
Csharp :: asp.net core update-database specify environment 
Csharp :: color rgb to float c# 
Csharp :: unity normalize 
Csharp :: linq convert list to another list 
Csharp :: dotnet core encryption and decryption 
Csharp :: show datatable c# 
Csharp :: runtime save scene unity 
Csharp :: c# check if character is lowercase 
Csharp :: linq c# where condition 
Csharp :: hashtable in c# 
Csharp :: how to set a color of text in unity 2020 script 
Csharp :: list c# 
Csharp :: list view in unity 
Csharp :: matrix transpose c# 
Csharp :: Triangle perimeter 
Csharp :: c# collection of generic classes 
Csharp :: send mail c# 
Csharp :: non null array length 
Csharp :: shuffle array c# 
Csharp :: mock async method c# reutrnd 
Csharp :: how to c# 
Csharp :: populate array from an XML file 
Csharp :: constant interpolated string 
Csharp :: Xamarin forms XAML change value 
Csharp :: entity framework linq join 2 tables c# 
Csharp :: pyqt send message to another instance 
Csharp :: How to create a gameobject by code 
Csharp :: c# logical operators 
Csharp :: epplus how to align text to right 
Csharp :: read text c# 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =