Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
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 
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 
Ennis Ray Lynch, Jr. wrote:
Return is not allowed inside of methods more than once


This isn't true. The C# language specification allows methods to contain multiple return statements.

The question to ask is whether a method should contain multiple return statements. The Microsoft Code Complete book makes some good arguments for and against this practice. There are definitely cases when multiple return statements make for greater readability and reduced complexity.

Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


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 
GeneralRe: visual C# 2005 exiting Pin
xxmikexx19-Mar-08 11:49
xxmikexx19-Mar-08 11:49 
GeneralRe: visual C# 2005 exiting Pin
Not Active19-Mar-08 12:29
mentorNot Active19-Mar-08 12:29 

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.