What is the System.Void type

3

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?

    
asked by anonymous 18.02.2015 / 04:21

1 answer

5

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.

    
18.02.2015 / 05:26