Default Return type of functions in C#

Partho Sarathi

07 Aug, 2007 · 1 minute read

  • Share:

There is NO default return type of functions in C#. If you don’t want to return any value, the function must be declared as void.

public void MyFunc()
{
    Console.Write("My Function");
}
  • Share:

The cleanest blogging platform


2024 © Maxotek. All rights reserved.