How to map to List<object> type
I have an employee class like below
public class Employee:EmployeeBaseClass
{
}
which is inheriting from employee Base class below is the definition of employee base class
public class EmployeeBaseClass
{
public employeeAddress Address{Get;set;}
public List<EmployeePhoneNumbers> employeePhones{get;set;}
}
public class employeeAddress
{
public string street{get;set;}
public string houseNo{get;set;}
}
Public class EmployeePhoneNumbers{
public string phoneType{Get;set;}
public string Number{get;set;}
}
I have same structure on the other end I am not writing it here all properties and class structure are same Now I want to map each class property with other end Like say this is request end and I have same classes on response end so how to map List<type> object how to use for loop and do I need to intentiate a class