Reference no: EM132281002
Need help with joining the two arrays
An employee has name, hours worked, pay rate, and department. A manager has name, salary, office location, and department supervised.
Create a console application with an array of five employees and an array of three managers. Use anonymous type to initialize both employees and managers with made up data.
Use LINQ to join the two arrays and create a new anonymous type with three properties: employee name, supervisor name, supervisor office, and department.
Use a foreach loop to display all employee names, their supervisor's name, and the supervisor's office location.
Using Microsoft visual studio.