📅  最后修改于: 2022-03-11 14:49:13.734000             🧑  作者: Mango
using System.Linq;
int[] ints = new [] { 10, 20, 10, 34, 113 };
List lst = ints.OfType().ToList(); // this isn't going to be fast.
OR
List lst = new List { 10, 20, 10, 34, 113 };