Per Erik Strandberg /cv /kurser /blog

This template does more or less what Cansi Template does (see below).

Download from here [1]

using System;

namespace HelloWorld
{
    class Program
    {
        public static void Main(string[] args)
        {
            int i = 0;

            Console.WriteLine("Hello World!");

            foreach (string arg in args)
                Console.WriteLine("{0} - {1}", i++, arg);
        }
    }
}

Usage:

C:\tmp>hw.exe foo bar baz "x y z"
Hello World!
0 - foo
1 - bar
2 - baz
3 - x y z


Belongs in Kategori Mallar