Click to See Complete Forum and Search --> : Return in C#


nitindel
04-03-2008, 07:48 AM
Hi All,
I want to know that what does the rturn keywod do in C#??

Also,
What does Return(1),Return(0) and Return(-1) means in C#??




Regards,
Nitin Sharma
Software Engineer

TheBearMay
04-03-2008, 10:46 AM
Stops execution of the function and returns a value to the calling routine.

See: http://msdn2.microsoft.com/en-us/library/1h3swy84(VS.71).aspx