I'm trying to deep copy a 2D array using Linq and the Select method based off a code sample I found:
var copy = original.Select(x => x.ToArray()).ToArray();
where "original" is int[,] original = new int[10, 10]
and filled with values.
However, when I attempt using this format, I get a definition error for Select() as if it just isn't there to begin with. Note, I do have using System.Linq;
listed. The Linq methods don't even show in the Intellisense popup window while typing.
I assume my 2D array itself isn't an issue, since I've filled it and printed all the values without issue, so it isn't broken. But why are Linq methods not working despite being included in the code library list?