Chapter 2. Working with Variables, Operators, and Expressions

After completing this chapter, you will be able to:

  • Understand statements, identifiers, and keywords.

  • Use variables to store information.

  • Work with primitive data types.

  • Use arithmetic operators such as the plus sign (+) and the minus sign (–).

  • Increment and decrement variables.

In Chapter 1 you learned how to use the Microsoft Visual Studio 2010 programming environment to build and run a Console program and a Windows Presentation Foundation (WPF) application. This chapter introduces you to the elements of Microsoft Visual C# syntax and semantics, including statements, keywords, and identifiers. You’ll study the primitive types that are built into the C# language and the characteristics of ...

Get Microsoft® Visual C#® 2010 Step by Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.