foreach(Company c in comp)
{
Console.WriteLine("Company name: {0} Company ID: {1}\n**********\n**********\n",c.companyName,c.ID);
foreach(Department d in c.department)
{
Console.WriteLine("Department name: {0} Department ID: {1}\n**********\n", d.departmentName,d.ID);
foreach (Employee e in d.employees)
{
Console.WriteLine("Employee ID: {0} Employee Name: {1} Age: {2} Address: {3}\n-------\n", e.employeeId,e.employeeName,e.age,e.address);
}
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.