Not quite. In C#, there are simply methods that return values (functions in
VB) and those that don't (subs in VB). For example, the following two
procedures would be equivalent:
VB:
Public Sub DoesNothing()
Exit Sub 'Not required, but since it's what you originally asked
about... <g>
End Sub
C#:
public void DoesNothing()
{
return; // Not required here either.
}
"Brett" <no@spam.com> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...
Nice. Thanks.
Does this mean there is no concept of a method in C#? Everything is a
function?
Brett
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:u$**************@TK2MSFTNGP09.phx.gbl... return;
"Brett" <no@spam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... What is the C# equivalent of VB.NET's Exit Sub?
Thanks,
Brett