The Main
method is the entry point of a C# console application. Thus, for example, if I have to start some threads or services, I will do it within the Main
method.
I do not see the Main
method inside a WPF project, so what is the entry point of a WPF application? If I have to start some threads or services, where should write the code for starting them?
UPDATE: this answer summarizes the available solutions, but what are the pros and cons of each solution?
See Question&Answers more detail:os