减轻自己的痛苦…
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.也可以…
List<int> lst = new List<int> { 10, 20, 10, 34, 113 };要么…
List<int> lst = new List<int>();lst.Add(10);lst.Add(20);lst.Add(10);lst.Add(34);lst.Add(113);
要么…
List<int> lst = new List<int>(new int[] { 10, 20, 10, 34, 113 });要么…
var lst = new List<int>();lst.AddRange(new int[] { 10, 20, 10, 34, 113 });


