CODEKILLER

반응형

Enumerable.SingleOrDefault 출력예제
Enumerable.SingleOrDefault 출력예제

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

        string[] codes = { "codeA" };
        string code = codes.SingleOrDefault();
        Console.WriteLine(code);

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

공유하기

facebook twitter kakaoTalk kakaostory naver band