Can this be rewritten any better using LINQ? I\'m a C#er trying to think in VB.NET for this current project. It\'s in an ASP.NET Web Forms .vb codebehind:
Pu
You can use SelectMany to flatten such a collection.
SelectMany
var array = arrayOfArrays.SelectMany(item => item).Distinct().ToArray(); // C# Dim array = arrayOfArrays.SelectMany(Function(item) item).Distinct().ToArray() // VB