CODEKILLER

반응형

Enumerable.Single 출력예제
Enumerable.Single 출력예제

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

        string[] codes = { "CodeA" };
        string single = codes.Single();
        Console.WriteLine(single);

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

공유하기

facebook twitter kakaoTalk kakaostory naver band