Searches for an element that matches the conditions defined by a predicate.
문법
Array.Find<T>(array, match)예제
아래 값을 입력하면 예제에 즉시 반영됩니다.
numbers→found→Find→Console→WriteLine→int[] numbers = { 1, 3, 5, 8, 10 };
int found = Array.Find(numbers, n => n % 2 == 0);
Console.WriteLine(found); // 8