October 2008
Beginner to intermediate
680 pages
16h 48m
English
A simple expression in C# is the following (plus a few more expression types having to do with objects that you'll learn about in Chapter 13):
A constant: 7, false
A char(acter) literal: 'A', '&'
A string literal: "foo"
The name of any variable declared to be of one of the predefined types that we've discussed so far: myString, x
Any two of the preceding items that are combined with one of the C# binary operators (discussed in detail later in this chapter): x + 2
Any one of the preceding items that is modified by one of the C# unary operators (discussed in detail later in this chapter): i++
Any of the preceding simple expressions enclosed in parentheses: (x + 2)
Assigning a value to a variable is accomplished ...
Read now
Unlock full access