For Loop for concatenation of strings
foreach (int id in ints)
{
idString.Append(id + ", ");
} LINQ Query to concatenate a string string ids = ints.Select(query => query.ToString()).Aggregate((a, b) => a + ", " + b); Performance wise which one will be faster. I searched through many websites, mostly they say LINQ has some performance implications like that, is that true or above LINQ query will execute faster.
LINQ Query to concatenate a string
string ids = ints.Select(query => query.ToString()).Aggregate((a, b) => a + ", " + b); Performance wise which one will be faster. I searched through many websites, mostly they say LINQ has some performance implications like that, is that true or above LINQ query will execute faster.