using System.Collections.Generic;
public static void Main()
var p = new List<Parent> {
Childs = new List<Child> {
Childs = new List<Child> {
var obj = p.SelectMany(t => t.Childs.Select(m => new { m.ChildName, t.ParentName })).ToList();
foreach (var item in obj) {
Console.WriteLine($"ParentName: {item.ParentName}, ChildName: {item.ChildName}");
public string ParentName { get; set; }
public List<Child> Childs { get; set; }
public string ChildName { get; set; }