c# - Can LINQ construct and return a multidimensional array -



c# - Can LINQ construct and return a multidimensional array -

yes, know difference between jagged array [][] , multidimensional array [,].

yes, have looked duplicates , found these:

how utilize linq on multidimensional array 'unwind' array? convert 2 dimensional array c# linq homecoming multidimensional array linq

the lastly 1 of these contains function job. question still: there way (no matter how contorted or contrived) persuade linq build , homecoming result in form of multidimensional array (and not jagged array)?

it's not relevant question, problem led here 1 of little jobs looked "made linq", except function needed phone call had been defined multidimensional array parameter. linq code produce reply jagged array took 5 minutes write, , what? did miss something, or there no way linq job?

i supposed should say: other writing chunk of code old way , embedding lambda or calling extension method. if linq can neither produce nor consume multidimensional arrays, , reply question no.

i supposed should say: other writing chunk of code old way , embedding lambda or calling extension method. if linq can neither produce nor consume multidimensional arrays, , reply question no.

it no. linq methods extension methods of ienumerable<t>. while jagged array (say, int[int[]]) implements ienumerable<int[]>, multidimensional array doesn't implement ienumerable<t>, can't utilize linq extension method.

the thing homecoming multidimensional array using projection (select).

c# .net arrays linq multidimensional-array

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -