CODEKILLER

반응형

Enumerable.FirstOrDefault 예제
Enumerable.FirstOrDefault 예제

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

        int[] numbers = { };
        int first = numbers.FirstOrDefault();
        Console.WriteLine(first);

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

공유하기

facebook twitter kakaoTalk kakaostory naver band