DataTable dt = null;
try
{
var x = dt.Rows.Count;
}
catch(NullReferenceException nullexception)
{
MessageBox.Show(nullexception.StackTrace);
}
DataTable dt = null;
try
{
var x = dt.Rows.Count;
}
catch(NullReferenceException nullexception)
{
MessageBox.Show(nullexception.StackTrace);
}