[0,0,0]
[1,1,1]
[2,2,2]
I have the above 2 dimensional array.
I need to check for 3 things, first is to check if all the cells are filled just like above.
Second:
[0,0,0]
[1]
[]
For the above array, I need to check if all the cells are populated per row.
Third:
[0,]
[1,1]
[2,2,2]
I want to find if the first elements of first column are populated.
I can do it with foreach loops, or for loop. but i want to use All(predicate) with linq.
foreach (var ticketValue in ticketValues)
{
firstRow = ticketValue.All(x => x == i);
foreach (var value in ticketValue)
{
}
}
What would be the best way to do this?
foreachversion of what you want to do?