Args.md

May 25, 2016 · View on GitHub

Args Back

  • 命令行參數: Main函數開始時接受的參數
using System;

class listArg0
{
	public static void Main(String[] args)
	{
		string strName;  
		strName = args[0]; 
		Console.WriteLine("This is the first argument: {0}!", strName);  
		Console.Read();
	}
}