1 Introducing C# Hello, World Compiling and Running the Application Managed Execution and the Common Language Infrastructure C# Syntax Fundamentals C# Keywords Type Definition Main Statements and Statement Delimiters Whitespace Working with Variables Data Types Declaring a Variable Assigning a Variable Using a Variable Console Input and Output Getting Input from the Console Writing Output to the Console Comments Common Intermediate Language and ILDASM 2 Data Types Fundamental Numeric Types Integer Types Floating-Point Types (float, double) Decimal Type Literal Values More Fundamental Types Boolean Type (bool) Character Type (char) Strings null and void null The void Nontype Categories of Types Value Types Reference Types Nullable Modifier Conversions between Data Types Explicit Cast Implicit Cast Type Conversion without Casting Arrays Declaring an Array Instantiating and Assigning Arrays Using an Array Strings as Arrays Common Errors 3 Operators and Control Flow Operators Plus and Minus Unary Operators ( , -) Arithmetic Binary Operators ( , -, , /, %) Parenthesis Operator Assignment Operators ( =, -=, =, /=, %=) Increment and Decrement Operators ( , --) Constant Expressions (const) Introducing Flow Control if Statement Nested if Code Blocks ( |