📜  c# void - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:53.531000             🧑  作者: Mango

代码示例1
// You use void as the return type of a method (or a local function)
// to specify that the method doesn't return a value.
class Program
{
    public void Main()
    {
      TestVoid();
    }
    public void TestVoid()
    {
        Console.WriteLine("This does not return anything.");
    }
}