Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一套应用程序,我想在应用程序在 Main() 例程中启动时执行一些标准代码。
我希望我可以通过继承来做到这一点,而不必在 Main() 例程的每次出现中都放置相同的代码,但我不确定最好的方法。
任何人都可以建议如何去做吗?
谢谢
马特