void isn't allowed in the parameter list of a
method. A
method that takes no parameters and returns no value is declared as follows:
public void SampleMethod() { // Body of the
method. }
void is also used in an unsafe context to declare a pointer to an unknown type.
read more >>