See line of code below:
DataTable [] _tables = null;
// Throws System.NullReferenceException
_tables.GetType();
// Throws System.ArgumentNullException
_tables.Count();
In this lines of code I have _tables
reference and trying to access its system define functions GetType()
and Count()
, both throw exception but why .Count()
throws System.ArgumentNullException
, since we have same value for reference which is null
?