Home > Google > Default Return type of functions in C#

Default Return type of functions in C#

August 8th, 2007

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.

1
2
3
4
public void MyFunc()
{
    Console.Write("My Function");
}

partho Google

  1. October 22nd, 2009 at 16:20 | #1

    What is really happening here? ,

  1. No trackbacks yet.