Answers for "convert list into array c"

C#
1

array to list C

using System.Linq;

int[] ints = new [] { 10, 20, 10, 34, 113 };

List<int> lst = ints.OfType<int>().ToList(); // this isn't going to be fast.

OR

List<int> lst = new List<int> { 10, 20, 10, 34, 113 };
Posted by: Guest on March-13-2020

Code answers related to "convert list into array c"

C# Answers by Framework

Browse Popular Code Answers by Language