asked in C sharp (C#) by (6.6k points) edited by
0 like 0 dislike
15 views

How can I convert a List to a regular array in the C# (C Sharp) programming language?


list to array

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

0 like 0 dislike
answered by (6.6k points) edited by

The List<T>.ToArray() method copies the elements of the List<T> list to a new array.

Links

Related questions

0 like 0 dislike
1 answer 15 views
0 like 0 dislike
1 answer 8 views
0 like 0 dislike
1 answer 25 views
0 like 0 dislike
1 answer 11 views
0 like 0 dislike
1 answer 26 views
0 like 0 dislike
1 answer 25 views
0 like 0 dislike
1 answer 13 views
0 like 0 dislike
1 answer 31 views
0 like 0 dislike
1 answer 16 views
...