A Basic C# Console Application Sample
Version Compatibility: Visual Basic.NET, C#
More information:
Now that C# submissions are accepted, the included code snippet is just a sample console application written in C#. Call the class from the command line and pass in any number of arguments. The code will write back each of the arguments you passed in.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations:
public class HelloWorld { public static void Main(string[] args) { Console.WriteLine("Hello, World!"); for (int i=0; i < args.Length; i++) { Console.WriteLine("{0}", args[i]); } } }
(Visited 79 times, 1 visits today)