📜  c# 过滤器列表 - C# 代码示例

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

代码示例2
using System;
using System.Collections.Generic;

var vals = new List {-1, -3, 0, 1, 3, 2, 9, -4};

List filtered = vals.FindAll(e => e > 0);

Console.WriteLine(string.Join(',', filtered));