Checks if a datatable is null

Niladri.Biswas
Posted by Niladri.Biswas under C# category on | Points: 40 | Views : 1254
/// <summary>
/// Checks if a datatable is null
/// </summary>
/// <param name="dt"></param>
/// <returns></returns>
public static bool IsNull(this DataTable dt)
{
return dt == null ? true : false;
}

Comments or Responses

Login to post response