Check out example codes for "c# void". It will help you in understanding the concepts better.

Code Example 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.");
    }
}

Learn ReactJs, React Native from akashmittal.com