Saturday 28 May 2016

void

It specifies a return value type for a method that doesn’t have return value.
Void is structure type.

public void SampleMethod()
{
    // Body of the method.
}

void is an alias for the .NET Framework System.Void type. 
void is also used in an unsafe context to declare a pointer to an unknown type.

you can also visit:  www.mybook-lang.com

No comments:

Post a Comment