⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class1.cs

📁 c#精彩编程百例(源代码)
💻 CS
字号:
namespace ConsoleApp_CommandLine
{
    using System;

    /// <summary>
    ///    Summary description for Class1.
    /// </summary>
    public class Class1
    {
        public Class1()
        {
            //
            // TODO: Add Constructor Logic here
            //
        }

        public static int Main(string[] args)
        {
            //
            // TODO: Add code to start application here
            //
			int x=args[0].ToInt16();
			switch(x)
			{
				case 0:Console.WriteLine("Command Line Parameter is {0}",args[0]);
			           Console.WriteLine("You are 0"); 
					break;
				case 1:Console.WriteLine("Command Line Parameter is {0}",args[0]);			
					   Console.WriteLine("You are 1");
					break;
				default:
					break;
			}
            return 0;
        }
    }
}

⌨️ 快捷键说明

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