Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- if (args == null)
- {
- Console.WriteLine("args is null");
- }
- else
- {
- bool boolContinue = (args.Length) == 1 ? true : false;
- for (int i = 0; i < args.Length && boolContinue; i++)
- {
- string argument = args[i];
- Console.Write("args index ");
- Console.Write(i); // Write index
- Console.Write(" is [");
- Console.Write(argument); // Write string
- Console.WriteLine("]");
- }
- if (!boolContinue)
- Console.Write("Invaild argument");
- }
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement