关闭

The main() method

47人阅读 评论(0) 收藏 举报
C# programs start execution at a method named Main(). This must
be a static method of a class (or struct), and must have a return type of either int or void.
Although it is common to specify the public modifier explicitly, because by definition the method must be
called from outside the program, it doesn’t actually matter what accessibility level you assign to the entrypoint
method — it will run even if you mark the method as private.
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1024次
    • 积分:25
    • 等级:
    • 排名:千里之外
    • 原创:2篇
    • 转载:2篇
    • 译文:0篇
    • 评论:0条
    文章分类
    文章存档