using System;
using System.Collections.Generic;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[] arr;
List<int> list = new List<int>();
list.Add(1);
list.Add(23);
list.Add(100);
arr = list.ToArray();
foreach (var item in arr)
Console.Write(item.ToString() + " ");
}
}
}
/*
run:
1 23 100
*/