Current .Net Version: 1.1.4322
Home
Articles
Practice C# Online
C# Reference
XML Web Services
RSS Feeds
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog
ROR XML Info.
C# Reference
The world's largest C# Language & Framework Class Library Reference Database (second only to Microsoft's)!
Language Reference:
Language Search:
Framework Class Library Reference:
Framework Class Library Search:

statement
Is a:Definition
Applies to Version:C# 1.0 and later
Namespace:N/A
Assembly:N/A (N/A)
Description:Any piece of code that is marked complete with a semicolon (;) or code block brackets ({}). White space (tabs, spaces, etc.) is ignored. However, whereas semicolons define single statements, brackets can include more than one statement so long as each statement ends with a semicolon.
Syntax:
statement;
{ statement; }
{ statement1; statement2; statement3; }
{ statement1; statement2;  { nested-statement; } }
Example(s):M essageBox .Show( "Hello World!") ; // this is statement #1 // or simply... MessageBox.Show("Hello World!"); // this is statement #2 { MessageBox.Show("Yes, we can execute code within brackets all by itself!"); } switch (1) { case 1: MessageBox.Show("Hello World!"); // this is statement #3-1 break;// this is statement #3-2 } // this is statement #3
 
COPYRIGHT/DISCLAIMER | CONTACT US