Related questions
Distinct() with lambda?
Right, so I have an enumerable and wish to get distinct values from it.
Using System.Linq, there's of course an extension method called Distinct. In the simple case, it can be used with no parameters, like:
var distinctValues = myStringList.…
Convert string[] to int[] in one line of code using LINQ
I have an array of integers in string form:
var arr = new string[] { "1", "2", "3", "4" };
I need to an array of 'real' integers to push it further:
void Foo(int[] arr) { .. }
I tried to cast int and it of course failed:
Foo(…