Neal's Blog


  • Home

  • About

  • Schedule

Write multiple 'Main' methods(.NET/C#), and switch to correct one.

Posted on 2019-05-10

Introduction

As all books or materials showed that a .NET/C# application starts with a Main method. But we can write multiple Main methods in our project, then we can choose the correct one you wanted.
You may think that multiple Main is useless, but when your project has different startup processes depend on different compile conditions or you have to change a lot of codes to start your application, it may be a good choice to write multiple Main methods.

Read more »

Find the window you wanted by using EnumWindows

Posted on 2019-05-08

Introduction

During the development of windows application, you can operate other windows by enumerating windows with EnumWindows.

Read more »
12
Neal chen

Neal chen

.NET Core\WPF\.NET

12 posts
2 tags
E-Mail
© 2019 Neal chen
PV: | UV: |
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4