B
Brett
What is the C# equivalent of VB.NET's Exit Sub?
Thanks,
Brett
Thanks,
Brett
Further to what everyone else has said, I would like to add that ExitBrett said:What is the C# equivalent of VB.NET's Exit Sub?
Thanks,
Brett
John B said:Further to what everyone else has said, I would like to add that Exit Sub
is just a holdover from vb6 which should (my opinion) not be used as
Return (in vb.net) does the same thing and is more readable (especially to
non vb6 porgrammers).
I never liked the distinction between sub's and functions and think a void
return type is far cleaner and more readable.
Which is also what return is used for.Brett said:In this case, it's being used to break program flow. Not for returning
anything.
Brett