Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace myprogram
  6. {
  7. class Program
  8. {
  9. static string ProcessInput(string s)
  10. {
  11. // TODO Verify and validate the input
  12. // string as appropriate for your application.
  13. return s;
  14. }
  15.  
  16. static void Main(string[] args)
  17. {
  18. Console.WriteLine("Raw command-line: \n\t" + Environment.CommandLine);
  19. Console.WriteLine("\n\nArguments:\n");
  20.  
  21. foreach (string s in args)
  22. {
  23. Console.WriteLine("\t" + ProcessInput(s));
  24. }
  25.  
  26. Console.WriteLine("\nPress any key to continue...");
  27. Console.ReadKey();
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement