Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does System.Void type specify a return value type for a method that does not return a value?

Is this the actual type methods without a return value return?

If so, where is the distinction that "nothing" is returned made?

like image 519
Joan Venge Avatar asked Aug 06 '09 23:08

Joan Venge


1 Answers

I'm not sure exactly what you're looking for. There is a System.Void and a keyword 'void'.

The keyword is used for reasons stated by your definition of the type. The type is used in reflection when you ask what 'type' a method info will return.

like image 131
Marc Avatar answered Sep 20 '22 17:09

Marc