📄 class1.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 + -