Until then I thought void
was just a keyword to indicate a non-return method, but then I found System.Void on MSDN. Does that change anything?
Until then I thought void
was just a keyword to indicate a non-return method, but then I found System.Void on MSDN. Does that change anything?
System.Void
only has utility using Reflection
, if you want the programmer to know when a method returns void
.
The structure exists basically to resolve issues between compiler and CLR, where every primitive may or may not inherit from System
. Not that this is necessarily very useful when writing code.