I am trying to write a linq query.
I need my query to take a 2 dimensional array (d). It needs to check for each array within d if the first and last elements are not empty but any element within is empty, it will remove the empty element.
Example
{{test,"",test}, {test, test, test,"",test}} = {{test,test}, {test, test, test,test}}
But I need to be able to keep empty strings so cannot just search for them and remove them.
I hope I have explained that well enough.
Maybe
If you only need IEnumerables you can probably remove the ToArrays.