G
Guest
I need to output a Generic List to an array, but Ive been unable to.
The list looks like:
List<Employee> emp = new List<Employee>();
When I use ToArray() with it:
string[] empArray = emp.ToArray();
I get the error message:
Cannot implicitly convert type 'NgItIts.AD2Service.Ad2Employee[]' to
'string[]'
The online docs show a GetRange(), but Im unable to get to work.
The Employee class has useraccount, name, emailaddress, and organization
properties.
Any help is appreciated!
The list looks like:
List<Employee> emp = new List<Employee>();
When I use ToArray() with it:
string[] empArray = emp.ToArray();
I get the error message:
Cannot implicitly convert type 'NgItIts.AD2Service.Ad2Employee[]' to
'string[]'
The online docs show a GetRange(), but Im unable to get to work.
The Employee class has useraccount, name, emailaddress, and organization
properties.
Any help is appreciated!