Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
GeneralRe: visual C# 2005 exiting Pin
Not Active19-Mar-08 11:49
mentorNot Active19-Mar-08 11:49 
GeneralRe: visual C# 2005 exiting Pin
led mike19-Mar-08 11:52
led mike19-Mar-08 11:52 
GeneralRe: visual C# 2005 exiting Pin
xxmikexx19-Mar-08 12:00
xxmikexx19-Mar-08 12:00 
GeneralRe: visual C# 2005 exiting PinPopular
Not Active19-Mar-08 7:54
mentorNot Active19-Mar-08 7:54 
GeneralRe: visual C# 2005 exiting Pin
xxmikexx19-Mar-08 7:57
xxmikexx19-Mar-08 7:57 
GeneralDon't listen to anyone else Pin
Ennis Ray Lynch, Jr.19-Mar-08 9:14
Ennis Ray Lynch, Jr.19-Mar-08 9:14 
GeneralRe: Don't listen to anyone else Pin
xxmikexx19-Mar-08 10:13
xxmikexx19-Mar-08 10:13 
GeneralRe: Don't listen to anyone else Pin
Not Active19-Mar-08 10:39
mentorNot Active19-Mar-08 10:39 
Ennis Ray Lynch, Jr. wrote:
Return is not allowed


Not allowed, or not recommended? Two different things. I don't know of any language that places a restriction on the number of return statements that can be used in a block of code. However, yes, good design principles dictate that you should have as few exit points as possible.

The original question only asked what the equivalent of VB's exit sub was, not how it should be used. Both Mike and I answered that direct question. Saying "Don't listen to anyone else" is a bit over the top.


only two letters away from being an asset

GeneralRe: Don't listen to anyone else Pin
Ennis Ray Lynch, Jr.19-Mar-08 12:29
Ennis Ray Lynch, Jr.19-Mar-08 12:29 
GeneralRe: Don't listen to anyone else Pin
pmarfleet19-Mar-08 10:43
pmarfleet19-Mar-08 10:43 
GeneralRe: Don't listen to anyone else Pin
led mike19-Mar-08 10:51
led mike19-Mar-08 10:51 
GeneralRe: Don't listen to anyone else Pin
Ennis Ray Lynch, Jr.19-Mar-08 12:25
Ennis Ray Lynch, Jr.19-Mar-08 12:25 
GeneralRe: Don't listen to anyone else Pin
led mike20-Mar-08 5:45
led mike20-Mar-08 5:45 
GeneralRe: Don't listen to anyone else Pin
Ennis Ray Lynch, Jr.20-Mar-08 6:02
Ennis Ray Lynch, Jr.20-Mar-08 6:02 
GeneralRe: Don't listen to anyone else Pin
led mike20-Mar-08 6:13
led mike20-Mar-08 6:13 
GeneralRe: Don't listen to anyone else Pin
Ennis Ray Lynch, Jr.20-Mar-08 6:24
Ennis Ray Lynch, Jr.20-Mar-08 6:24 
GeneralRe: Don't listen to anyone else Pin
led mike20-Mar-08 6:28
led mike20-Mar-08 6:28 
GeneralRe: Don't listen to anyone else Pin
xxmikexx20-Mar-08 10:36
xxmikexx20-Mar-08 10:36 
GeneralRe: visual C# 2005 exiting Pin
Dave Kreskowiak19-Mar-08 10:41
mveDave Kreskowiak19-Mar-08 10:41 
GeneralRe: visual C# 2005 exiting Pin
xxmikexx19-Mar-08 10:51
xxmikexx19-Mar-08 10:51 
GeneralRe: visual C# 2005 exiting Pin
Dave Kreskowiak19-Mar-08 12:47
mveDave Kreskowiak19-Mar-08 12:47 
GeneralRe: visual C# 2005 exiting Pin
xxmikexx19-Mar-08 12:56
xxmikexx19-Mar-08 12:56 
GeneralRe: visual C# 2005 exiting Pin
engsrini19-Mar-08 11:20
engsrini19-Mar-08 11:20 
GeneralRe: visual C# 2005 exiting Pin
xxmikexx19-Mar-08 11:24
xxmikexx19-Mar-08 11:24 
GeneralRe: visual C# 2005 exiting Pin
Not Active19-Mar-08 11:44
mentorNot Active19-Mar-08 11:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.