I have a foreach loop.

```
foreach(var item in dataGrid)
        {

        }

```

I need to judge if "item" is null, because when the item is null, i get a NullReferenceException. NOTE: my purpose is not to judge "dataGrid", because for some reasons, this "dataGrid" in my program is never null (its value is 1 when it is actually null or 1), but "item" can be null when "dataGrid" is acutally null.

**The actual question** - How to judge whether item is null?