📜  c# 要列出的数组 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.734000             🧑  作者: Mango

代码示例3
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 };