Is it possible to write a program in one line in C#

1 Answer

0 votes
// yes
using System;namespace ConsoleApplication1{class Program{static void Main(string[] args){Console.Write("Hi");}}}
// don't do it - it's unclear and the maintenance will cause you headaches.


answered Mar 22, 2015 by avibootz
edited Mar 23, 2015 by avibootz
...