Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
19
Task/Program-name/C-sharp/program-name-2.cs
Normal file
19
Task/Program-name/C-sharp/program-name-2.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
namespace ProgramName
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// Extracts the filename from the full path
|
||||
System.IO.FileInfo exeInfo = new System.IO.FileInfo(System.Windows.Forms.Application.ExecutablePath);
|
||||
Console.Write(exeInfo.Name);
|
||||
|
||||
// Writes all arguments to the console
|
||||
foreach (string argument in args)
|
||||
{
|
||||
Console.Write(" " + argument);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue