📜  如何在 C# 代码示例中过滤列表

📅  最后修改于: 2022-03-11 14:49:04             🧑  作者: 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));