Wednesday, March 28, 2012

void keyword explanation

what is the significance of the keyword "void" ?

I come from a vb background and I'm playing around with c# at the moment...

Cheers
Markvoid dosn't return any value.

if you have void abc() means abc won't return any value!

For more info please refere below link

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcgrfvoid.asp
C# void = VB Sub
ah, thanks.
It all makes sense now.

Cheers
Mark

0 comments:

Post a Comment