Here is how I would write a function to make an acronym in Java style:
string makeAcronym(string str) { string result = \"\"; for (in
You can use the LINQ Aggregate method to do this in a fairly elegant way.
Something like this:
private static string MakeAcronym2(string str) { return str.Split(' ').Aggregate("", (x, y) => x += y[0]); }