Answers for "c# void"

C#
7

c# void

// 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.");
    }
}
Posted by: Guest on July-17-2020

C# Answers by Framework

Browse Popular Code Answers by Language