You don't need coddling; you don't need to be told what you already know. What you need is a book that uses your experience as a Java or C++ programmer to give you a leg up into the challenges and rewards of C#. And this Practical Guide is precisely what you're after.
Written by a team that boasts extensive experience teaching C# to professionals, this book provides a practical, efficient explanation of the language itself, covering basic to advanced features and calling out all that's new in 2. 0. Its instruction is always firmly situated within the context of the . NET framework and bolstered by code examples, key lessons in object-oriented programming, and installments of a realistic application programming tutorial. Concise and incisive, this is the best way to master the world's fastest-growing and most marketable programming language.
Features:
- Provides a carefully focused explanation of every aspect of the C# language, including entire chapters on the unified type system, advanced types, collections, generics, reflection and attributes.
- Highlights all features new to the latest version of C# and organizes its presentation of C# according to the key principles of object-oriented programming and the . NET framework.
- Using end-of-chapter exercises, incrementally develops a cohesive application programming tutorial.
- Provides a carefully focused explanation of every aspect of the C# language, including entire chapters on the unified type system, advanced types, collections, generics, reflection and attributes.
- Highlights all features new to the latest version of C# and organizes its presentation of C# according to the key principles of object-oriented programming and the . NET framework.
- Using end-of-chapter exercises, incrementally develops a cohesive application programming tutorial.
Inhaltsverzeichnis
1;Front Cover;1 2;C# 2.0: Practical Guide for Programmers;6 3;Copyright Page;7 4;Contents;10 5;Preface;16 6;Chapter 1. Introducing C# and .NET;22 6.1;1.1 What Is C#?;22 6.2;1.2 What Is the .NET Framework?;23 6.3;1.3 Project Exercise;26 6.4;1.4 Syntax Notation;27 7;Chapter 2. Classes, Objects, and Namespaces;30 7.1;2.1 Classes and Objects;31 7.2;2.2 Access Modifiers;33 7.3;2.3 Namespaces;35 7.4;2.4 Compilation Units;40 7.5;2.5 Compilation and Execution;43 8;Chapter 3. Class Members and Class Reuse;50 8.1;3.1 Fields and Methods;50 8.2;3.2 Parameter Passing;58 8.3;3.3 Class Reuse;66 9;Chapter 4. Unified Type System;76 9.1;4.1 Reference Types;77 9.2;4.2 Value Types;77 9.3;4.3 Literals;84 9.4;4.4 Conversions;85 9.5;4.5 Boxing and Unboxing;87 9.6;4.6 The Object Root Class;88 9.7;4.7 Arrays;97 9.8;4.8 Strings;100 10;Chapter 5. Operators, Assignments, and Expressions;104 10.1;5.1 Operator Precedence and Associativity;104 10.2;5.2 Assignment Operators;105 10.3;5.3 Conditional Operator;107 10.4;5.4 Null Coalescing Operator;108 10.5;5.5 Conditional Logical Operators;109 10.6;5.6 Logical Operators;110 10.7;5.7 Equality Operators;113 10.8;5.8 Relational Operators;115 10.9;5.9 Shift Operators;117 10.10;5.10 Arithmetic Operators;118 10.11;5.11 Unary Operators;122 10.12;5.12 Other Primary Operators;124 10.13;5.13 Overloadable Operators;125 11;Chapter 6. Statements and Exceptions;128 11.1;6.1 Block Statement;128 11.2;6.2 Declaration Statements;129 11.3;6.3 Embedded Statements;130 11.4;6.4 Exceptions and Exception Handling;138 12;Chapter 7. Advanced Types, Polymorphism, and Accessors;150 12.1;7.1 Delegates and Events;151 12.2;7.2 Abstract Classes;157 12.3;7.3 Interfaces;159 12.4;7.4 Polymorphism and Virtual Methods;164 12.5;7.5 Properties;171 12.6;7.6 Indexers;176 12.7;7.7 Nested Types;178 12.8;7.8 Other Modifiers;180 13;Chapter 8. Collections and Generics;184 13.1;8.1 Collections;184 13.2;8.2 Generics;201 14;Chapter 9. Resource Disposal, Input/Output, and Threads;206 14.1;9.1 Resour
ce Disposal;206 14.2;9.2 Input/Output;209 14.3;9.3 Threads;214 15;Chapter 10. Reflection and Attributes;232 15.1;10.1 Reflection;232 15.2;10.2 Attributes;236 15.3;10.3 Where to Go from Here;244 16;Appendix A. C# 2.0 Grammar;248 16.1;A.1 Lexical Grammar;248 16.2;A.2 Syntactic Grammar;252 16.3;A.3 Generics;259 17;Appendix B. Predefined XML Tags for Documentation Comments;262 18;References;264 19;Index;266