Will VB.NET Whidbey has a break statement?

  • Thread starter Thread starter Neo
  • Start date Start date
N

Neo

I am in dire need of a break statement in VB.NET language.

I have several pieces of code that would have much cleaner look and much
less deeper if/else/endif nests IF VB.NET HAS A BREAK STATEMENT OR
SOMETHING SIMILAR.

Will VB.NET has a break statement in the coming Whidbey release?
 
Neo,
VB.NET 1.0 & 1.1 currently have a number of "break" like statements, what
exactly do you have in mind?

"break" like statements in VB.NET include but are not limited to:
Exit ( Do, For Function, Property, Select Sub, Try While )
Return
Goto (not neccessarily advised, but it is available).

VB.NET Whidbey will gain the Continue statement.

Have you considered creating smaller more focused methods (pieces of code)
in smaller more focused classes?

Hope this helps
Jay
 
Back
Top