函数定义

static void Write()
{
Console.WriteLine("Text output from function.");
}

ps:必须声明为static

 

posted @ 2018-05-15 18:46  朱小勇  阅读(91)  评论(0)    收藏  举报