시작 인자를 얻고 그 시작 인자에 대해 뭔가를 할 필요가있다. 스위치가 좋을 것이라고 생각했지만 int를 받아 들일 뿐이다. 문자열문자열로 스위치 문을 C#
이 실제 코드가 아닙니다이 될하지만 난이 일
namespace Simtho
{
class Program
{
static void Main(string[] args)
{
switch (Environment.GetCommandLineArgs())
{
case "-i":
Console.WriteLine("Command Executed Successfully");
Console.Read;
break;
}
}
}
}
문자열을 잘 켤 수 있습니다. –