如果您正在使用控制台应用程序 - Environment.Exit(exitCode); 如果您使用的是基于Windows Forms的应用程序 -Application.Exit(); 参考来源:http://www.dreamincode.net/forums/topic/273503-java-systemexit0%3B-equivalent-in-c%23/ 如何在C#中实现Java中的System.exit(0);功能?