What is System.Void type

Asked

Viewed 65 times

3

Until then I believed that void was just a keyword to indicate a no return method, but then I found System.Void on MSDN. This changes something?

1 answer

5


System.Void only useful using Reflection, if there is programmer desire to know when a method has as return void.

The structure exists basically to resolve issues between compiler and CLR, in which all primitive may or may not inherit from System. Not that it necessarily has much use when writing code.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.