不用写个类里面的 static main() 函数了。top-level program.
// using directives
using static System.Console;
using System.Threading.Tasks;
// program statements
await Task.Delay(100);
WriteLine("Hello " + (args.Length > 0 ? args[0] : "world!"));
return 0;
// local functions
// class/namespace declarations
void Foo() { }
class Foo { }
--
修改:hgoldfish FROM 110.81.40.*
FROM 110.81.40.*