Consider an array of strings similar to this:
string[] someName = new string[] { "First", "MiddleName", "LastName" };
The requirement is to get the first character from each element of the array.
i.e.
Fml
Previously tried:
string initials = string.Concat(someName.Select(x => x[0]));
Question: What LINQ query will you write to concatenate the entire name contained in the string array to give the initials?
source
share