13.07.2015 Views

C# Language Specification - Willy .Net

C# Language Specification - Willy .Net

C# Language Specification - Willy .Net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>C#</strong> LANGUAGE SPECIFICATIONPrecedence and associativity can be controlled using parentheses. For example, x + y * z first multipliesy by z and then adds the result to x, but (x + y) * z first adds x and y and then multiplies the result by z.8.6 Statements<strong>C#</strong> borrows most of its statements directly from C and C++, though there are some noteworthy additions andmodifications. The table below lists the kinds of statements that can be used, and provides an example foreach.28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!