Languages
[Edit]
EN

C# / .NET - convert Array to List

8 points
Created by:
Marcin
15710

1. Enumerable.ToList method example

int[] array = new int[]
{
	1, 2, 3
};

List<int> list = array.ToList();

foreach (int entry in list)
	Console.Write(entry + " ");

Output:

1 2 3

2. References

  1. Enumerable.ToList Method - Microsoft Docs
Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join