how can I write lambda expression for the following nested foreach loops:
var temp= new List<Items>();
foreach (var item in dto.Items)
{
temp.Add(item);
foreach (var child in item.Children)
{
temp.Add(child);
}
}
how can I write lambda expression for the following nested foreach loops:
var temp= new List<Items>();
foreach (var item in dto.Items)
{
temp.Add(item);
foreach (var child in item.Children)
{
temp.Add(child);
}
}