Alternate for Exit Sub in C#.net.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • noorcsharp
    New Member
    • Dec 2007
    • 10

    Alternate for Exit Sub in C#.net.

    i want to exit from a procedure. in vb.net i used Exit Sub to exit. but in c#.net what is the code ?.
  • george1106
    New Member
    • Oct 2006
    • 14

    #2
    Originally posted by noorcsharp
    i want to exit from a procedure. in vb.net i used Exit Sub to exit. but in c#.net what is the code ?.
    hi!
    that sounds to me like u want to terminate some excecution.. try with a return(); statement. it finish whatever you're doing and bring you to the previes stack position in your app ejecution..

    hope it helps :D

    Comment

    Working...