I’ve got an array var cells = new Cell[w, h], can I loop through all cells without a nested for-loop (I want to check if at least one is null)? Ideally I’d want to write something like Debug.Assert(!cells.Contains(null)).
I’ve got an array var cells = new Cell[w, h] , can I loop
Share
foreach loop ?