I know about Application.Exit (), but what if I am not in a Windows Forms application, but in a simple class library, how do I signal the application to exit?
Environment.Exit () - but why do you want to do this from a method in a class library?
P / Invoke ExitProcess , possibly. Or, if you're really in a hurry, TerminateProcess .
Source: https://habr.com/ru/post/1277512/More articles:Hinges and garbage collection - garbage-collectionHow can I call SSIS programmatically from .NET? - c #Java Script 2 D Array Distribution - javascriptDropDownList in repeater control cannot start SelectedIndexChanged - c #Writing a robust, fully ordered multicast system in Python - pythonRe-center modal popup with javascript - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1277514/offline-access-to-moinmoin-wiki-using-google-gears&usg=ALkJrhj0uk-ARcIaX600A2xapZ_Bn8plCAWhat is the most important feature in Mono 2.0? - monoHow to change the index page for rails? - ruby-on-railsUTF-8 in ASCII using the ICU library - c ++All Articles