Bend.TestMain.Main C# (CSharp) Метод

Main() публичный статический Метод

public static Main ( String args ) : int
args String
Результат int
        public static int Main(String[] args)
        {
            HttpServer httpServer;
            if (args.GetLength(0) > 0) {
                httpServer = new MyHttpServer(Convert.ToInt16(args[0]));
            } else {
                httpServer = new MyHttpServer(8080);
            }
            Thread thread = new Thread(new ThreadStart(httpServer.listen));
            thread.Start();
            return 0;
        }
TestMain