
Patrick B. answered 07/06/19
Math and computer tutor/teacher
Per the microsoft documentation, the && is lowest priority ,
while the membership operator (the decimal point) is the highest...
Rather than trying to remember the nooks are crannies, I would recommend using
the parenthesis to ensure they get done the order you want. That way you do
not have to remember all the silly little rules..
if (
(myDt != null) && ( (myDt.Rows.Count) > 0)
)
{
// processes the data table
}