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

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

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