techmanbd
Junior Contributor
I was wondering if it is proper to use the return in a void method to get of of the method as you would use exit sub in VB. It works I know that, but is it the proper way?
For example
VB
For example
VB
Visual Basic:
private sub WWWW()
if intL = 0 then exit sub
' other code here is intL not 0
End Sub
C#:
private void WWWW()
{
if(intL == 0)
{
return;
}
// other code here if intL not 0
}