CODEKILLER

반응형

Enumerable.First() 사용하기.
Enumerable.First() 사용하기.

 

public class Example
{
    public static void Main()
    {
        Console.Write("<< Enumerable.First 출력 예제 >> \n");

        int[] numbers = { 9, 34, 65, 92, 87, 435, 3, 54, 83, 23, 87, 435, 67, 12, 19 };

        int first = numbers.First(number => number > 80);

        Console.WriteLine(first);


        Console.WriteLine(System.Environment.NewLine);
        Console.WriteLine("Press any key to exit");
        Console.ReadKey();
    }
}
반응형

공유하기

facebook twitter kakaoTalk kakaostory naver band