I have a partially nfilled array of objects, and when I iterate through them I tried to check to see whether the selected object is null before I do other stuff
null
You can do it on one line of code (without array declaration):
object[] someArray = new object[] { "aaaa", 3, null }; bool containsSomeNull = someArray.Any(x => x == null);