我不知道你在思考什么,因为这是C#规范规定的。入口方法必须是静态的,且叫做Main。
Application startup occurs when the execution environment calls a designated method, which is referred to as the application's entry point. This entry point method is always named Main
, and can have one of the following signatures:
static void Main() {...} static void Main(string[] args) {...} static int Main() {...} static int Main(string[] args) {...}
本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度,google,bing,sogou 等
© 2025 tinynews.org All Rights Reserved. 百科问答小站 版权所有