Conversion from List<T> to array T[]
Try using
MyClass[] myArray = list.ToArray();
List<int> list = new List<int>();
int[] intList = list.ToArray();
is it your solution?
Use ToArray()
on List<T>
.
Try using
MyClass[] myArray = list.ToArray();
List<int> list = new List<int>();
int[] intList = list.ToArray();
is it your solution?
Use ToArray()
on List<T>
.