Program.cs

Program.cs

1 예시 1: CLI[ | ]

using System;

namespace hello
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}

2 예시 2: GUI[ | ]

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Hello
{
    static class Program
    {
        /// <summary>
        /// 해당 응용 프로그램의 주 진입점입니다.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
→ 프로젝트의 시작점
→ Form1을 생성하여 애플리케이션 실행

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}