Current .Net Version: 1.1.4322
Home
Articles
Practice C# Online
C# Reference
XML Web Services
RSS Feeds
T-SQL Scripts
Valuable Links
Contact Us
C# Reference
List: Search:

jump-statement
Is a:Definition
Applies to Version:C# 1.0 and later
Namespace:N/A
Assembly:N/A (N/A)
Description:A statement that transfers control from the point the jump statement is defined to some other point in the code. The following are jump statements: break, continue, default, goto, return.
Syntax:
jump-statement;
Example(s):String final = ""; foreach (String s in new String[] {"a", "b", "c"}) { if (s == "b") continue; final += s; } MessageBox.Show(final); // will print "ac"
 
COPYRIGHT/DISCLAIMER | CONTACT US