/ Published in: C#
This code demonstrates how to concatenate list of strings using lambda expression without need to use a loop.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var concatenatedString = someStrings.Agregate((current, next) => string.Concat(current," ",next)); Console.Write(concatenatedString); // result: This will concatenate strings.