📜  c# 按条件查找元素 - C# 代码示例

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

代码示例1
int[] plantHeights = { 3, 6, 4, 1, 6, 8 };

// Find the first occurence of a plant height that is greater
// than 5 inches
int firstHeight = Array.Find(plantHeights, height => height>5);