Why Enumerable.concat instead of string (Data Manipulation topic)

In List topic under Data Manipulation why did we use Enumerable.concat instead of string.concat since the the list is of string .

1 Like

The string is an enumerable, so using Enumerable.concat allows us to concatenate everything in the list. String.Concat is used to concatenate strings separated by commas as arguments (e.g. String.Concat("This ", "is ", "a ", "sentence."). The arguments are separate strings rather than a list object.

2 Likes

Thank you Anthony for taking your time and letting me know.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.