program.cs

来自「微软系列丛书<<C#2005从入门到精通>>」· CS 代码 · 共 39 行

CS
39
字号
#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace StructsAndEnums
{
    class Program
    {
        static void Entrance()
        {
			Month first = Month.December;
			Console.WriteLine(first);
			first++;
			Console.WriteLine(first);

			Date defaultDate = new Date();
			Console.WriteLine(defaultDate);
			Date halloween = new Date(2005, Month.October, 31);
			Console.WriteLine(halloween);
        }

        static void Main()
        {
            try
            {
                Entrance();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?