I have the following code
var result = data.Select(a => new { Id = a.Id, text = a.Type, assetName = a.Value}).Take(10).OrderBy(a => a.text).ToList();
I want to concatenate Type and Value in a single value and assign this value to the text like that
foreacah(var item in result)
{
item.text = item.text + " | " + item.assetName;
}
Is there a way to achieve this?