c# - What is System.Void? -
I know that the method declared with But it seems that in C # there is more Why is not there permission to use that type of thing? It does not make any sense, but it only has some ideas about the argument. Neither (which says I should use Compiles. It is not possible to do anything like this: Then what is the point with to: There is no reason to use it in the code. In addition to: This does not compile for me Update: One method Finally, this expression is not legal for any program involving zero does not return anything.
zero and there is only one keyword, but a real type. There is an alias for
zero
System.Void as
int which is
System.Int32 .
var nothing = new system Weed ();
zero (not alias?))
not
var nothing = new zero ();
Do not give me zero () {} give zero) {nothing to return); }
System.Void ?
/ Code> structure is used in the
system. Reflection namespace, but rarely useful in a normal application
zero structure does not have any member of all types, from the
object class Receive.
var nothing = new zero ();
void Foo () does not return, what does this mean? anything.
System.Void is such that if you ask (through reflection), "what method is the type of return method?", You can get the answer
typeof (System.Void) Are . There is no technical reason for this, instead of
null can not be returned, but this reflection will present a special case in the API, and if possible, special cases should be avoided.
typeof (System.Void) . However, this is an compiler-applicable restriction, CLR is not one. In fact, if you try the allowed
typeof (zero) and see its value in the debugger, you will see that this is the same value if it is the
typeof (System.Void) Were legal.
Comments
Post a Comment