将 Lambda 表达式作为参数传递给方法

List<int> l2 = l1.FindAll(x => x > 6);

这里 x => x > 6 是一个 lambda 表达式,用作谓词,确保只返回 6 以上的元素。